fix hardcoded containers per rowshard

There are 16 containers in a row in a shard with the default shard
width of 2^20, but since you can change the shard width at compile
time, everything should be computed off that.
This commit is contained in:
Matthew Jaffee 2022-05-27 08:57:12 -05:00 • committed by Matthew Jaffee
parent a4b1af2add
commit 90eb860b03

View file

@ -1214,7 +1214,7 @@ func getFirstRowAsContainers(citer ContainerIterator) []containerWithKey {
citerContainers := make([]containerWithKey, 0)
for citer.Next() {
key, cont := citer.Value()
if key > 15 {
if key >= rowWidth {
continue
}
citerContainers = append(citerContainers, containerWithKey{Container: cont, key: FilterKey(key)})