Skip to content

Commit 8550f65

Browse files
committed
fix(pkg/store): fix uniform cache layers size allocation with small values
1 parent 685e181 commit 8550f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/store/treestore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ func (t *treeStore) makeCaches() {
177177
}
178178
for i := 0; i < 256; i++ {
179179
t.caches[i] = ring.NewRingBuffer(size)
180-
if size > 64 {
180+
if size/2 > 64 {
181181
size /= 2
182182
} else {
183183
size = 64

0 commit comments

Comments
 (0)