Merge pull request #12798 from fionaliao/remove-duplicated-max-time

Remove duplicated ms.mmMaxTime check in processWALSamples
This commit is contained in:
Bryan Boreham 2023-09-06 09:17:42 +01:00 committed by GitHub
commit f711d71aa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -589,9 +589,6 @@ func (wp *walSubsetProcessor) processWALSamples(h *Head, mmappedChunks, oooMmapp
if s.T <= ms.mmMaxTime { if s.T <= ms.mmMaxTime {
continue continue
} }
if s.T <= ms.mmMaxTime {
continue
}
if _, chunkCreated := ms.append(s.T, s.V, 0, appendChunkOpts); chunkCreated { if _, chunkCreated := ms.append(s.T, s.V, 0, appendChunkOpts); chunkCreated {
h.metrics.chunksCreated.Inc() h.metrics.chunksCreated.Inc()
h.metrics.chunks.Inc() h.metrics.chunks.Inc()