diff --git a/posting/mvcc.go b/posting/mvcc.go index 3b7c1094383..1b32ac86c38 100644 --- a/posting/mvcc.go +++ b/posting/mvcc.go @@ -385,7 +385,7 @@ func initMemoryLayer(cacheSize int64, keepUpdates bool) *MemoryLayer { ostats.Record(context.Background(), x.PLCacheHitRatio.M(m.Ratio())) } }() - if cacehSize > 0 { + if cacheSize > 0 { ml.cache = cache } return ml