From b2712ff284b5193698f68f475e7e237e714c51bb Mon Sep 17 00:00:00 2001 From: shandongzhejiang Date: Wed, 21 Aug 2024 11:09:37 +0800 Subject: [PATCH] chore: fix some function names Signed-off-by: shandongzhejiang --- tsdb/agent/db.go | 2 +- tsdb/chunks/head_chunks_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tsdb/agent/db.go b/tsdb/agent/db.go index 1b6df3af0..9697739e0 100644 --- a/tsdb/agent/db.go +++ b/tsdb/agent/db.go @@ -1118,7 +1118,7 @@ func (a *appender) logSeries() error { return nil } -// mintTs returns the minimum timestamp that a sample can have +// minValidTime returns the minimum timestamp that a sample can have // and is needed for preventing underflow. func (a *appender) minValidTime(lastTs int64) int64 { if lastTs < math.MinInt64+a.opts.OutOfOrderTimeWindow { diff --git a/tsdb/chunks/head_chunks_test.go b/tsdb/chunks/head_chunks_test.go index 4a4d89e81..b2aa39c3b 100644 --- a/tsdb/chunks/head_chunks_test.go +++ b/tsdb/chunks/head_chunks_test.go @@ -408,7 +408,7 @@ func TestChunkDiskMapper_Truncate_WriteQueueRaceCondition(t *testing.T) { wg.Wait() } -// TestHeadReadWriter_TruncateAfterIterateChunksError tests for +// TestHeadReadWriter_TruncateAfterFailedIterateChunks tests for // https://github.com/prometheus/prometheus/issues/7753 func TestHeadReadWriter_TruncateAfterFailedIterateChunks(t *testing.T) { hrw := createChunkDiskMapper(t, "")