From f211fcd92dc27506b5597a2f41420f1cf88a5b39 Mon Sep 17 00:00:00 2001 From: Fiona Liao Date: Tue, 5 Sep 2023 15:21:40 +0100 Subject: [PATCH] Remove duplicated ms.mmMaxTime check in WAL Signed-off-by: Fiona Liao --- tsdb/head_wal.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/tsdb/head_wal.go b/tsdb/head_wal.go index 19520a7d2..bfd49b47a 100644 --- a/tsdb/head_wal.go +++ b/tsdb/head_wal.go @@ -589,9 +589,6 @@ func (wp *walSubsetProcessor) processWALSamples(h *Head, mmappedChunks, oooMmapp if s.T <= ms.mmMaxTime { continue } - if s.T <= ms.mmMaxTime { - continue - } if _, chunkCreated := ms.append(s.T, s.V, 0, appendChunkOpts); chunkCreated { h.metrics.chunksCreated.Inc() h.metrics.chunks.Inc()