Skip to content

Commit a514d0f

Browse files
committed
blob: fix bug to use BufferPool
1 parent 28a04cd commit a514d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sstable/blob/blob.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,8 +664,8 @@ func (r *FileReader) ReadProperties(ctx context.Context) (FileProperties, error)
664664
bufferPool.Init(1)
665665
defer bufferPool.Release()
666666
b, err := r.r.Read(
667-
ctx, block.NoReadEnv, nil /* readHandle */, r.footer.propertiesHandle, blockkind.Metadata,
668-
func(*block.Metadata, []byte) error { return nil },
667+
ctx, block.ReadEnv{BufferPool: &bufferPool}, nil /* readHandle */, r.footer.propertiesHandle,
668+
blockkind.Metadata, func(*block.Metadata, []byte) error { return nil },
669669
)
670670
if err != nil {
671671
return FileProperties{}, err

0 commit comments

Comments
 (0)