diff --git a/indexwriter/lid_accumulator.go b/indexwriter/lid_accumulator.go index 311311ef..d2b1b97a 100644 --- a/indexwriter/lid_accumulator.go +++ b/indexwriter/lid_accumulator.go @@ -1,6 +1,9 @@ package indexwriter -import "github.com/ozontech/seq-db/frac/sealed/lids" +import ( + "github.com/ozontech/seq-db/consts" + "github.com/ozontech/seq-db/frac/sealed/lids" +) type lidAccumulator struct { blockCapacity int @@ -17,6 +20,10 @@ func newLIDAccumulator( blockCapacity int, onBlock func(unpackedLIDBlock) error, ) *lidAccumulator { + if blockCapacity == 0 { + blockCapacity = consts.DefaultLIDBlockCap + } + a := &lidAccumulator{ blockCapacity: blockCapacity, onBlock: onBlock,