mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-27 14:39:40 -08:00
Merge pull request #2412 from prometheus/beorn7/storage
storage: One more persist error code path discovered
This commit is contained in:
commit
0c688ab339
|
@ -1513,7 +1513,8 @@ func (s *MemorySeriesStorage) writeMemorySeries(
|
||||||
series.chunkDescsOffset -= numDroppedFromPersistence
|
series.chunkDescsOffset -= numDroppedFromPersistence
|
||||||
if series.chunkDescsOffset < 0 {
|
if series.chunkDescsOffset < 0 {
|
||||||
persistErr = errors.New("dropped more chunks from persistence than from memory")
|
persistErr = errors.New("dropped more chunks from persistence than from memory")
|
||||||
series.chunkDescsOffset = -1
|
series.chunkDescsOffset = 0
|
||||||
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue