mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/storage: skip recovering timestamps order for lossless compression (PrecisionBits=64)
This commit is contained in:
parent
c9472e4f3a
commit
3748fb24b6
1 changed files with 4 additions and 1 deletions
|
@ -244,7 +244,10 @@ func (b *Block) UnmarshalData() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
encoding.EnsureNonDecreasingSequence(b.timestamps, b.bh.MinTimestamp, b.bh.MaxTimestamp)
|
||||
if b.bh.PrecisionBits < 64 {
|
||||
// Recover timestamps order after lossy compression.
|
||||
encoding.EnsureNonDecreasingSequence(b.timestamps, b.bh.MinTimestamp, b.bh.MaxTimestamp)
|
||||
}
|
||||
b.timestampsData = b.timestampsData[:0]
|
||||
|
||||
b.values, err = encoding.UnmarshalValues(b.values[:0], b.valuesData, b.bh.ValuesMarshalType, b.bh.FirstValue, int(b.bh.RowsCount))
|
||||
|
|
Loading…
Reference in a new issue