storage: One more persist error code path discovered
Also, in that code path, set chunkDescsOffset to 0 rather than -1 in
case of "dropped more chunks from persistence than from memory" so
that no other weird things happen before the series is quarantined for
good.
@@ -1513,7 +1513,8 @@ func (s *MemorySeriesStorage) writeMemorySeries(
series.chunkDescsOffset -= numDroppedFromPersistence
if series.chunkDescsOffset < 0 {
persistErr = errors.New("dropped more chunks from persistence than from memory")
- series.chunkDescsOffset = -1
+ series.chunkDescsOffset = 0
+ return true
}
}
return false
