Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions pkg/debuginfo/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,9 @@ func contextError(ctx context.Context) error {
return nil
}
}

// ObjectSize implements the objstore.ObjectSizer interface to provide the total size of bytes read so far.
// This is used by objstore.TryToGetSize to optimize multipart uploads by pre-allocating the correct buffer size.
func (r *UploadReader) ObjectSize() (int64, error) {
return int64(r.size), nil
}