Browse Source

Merge pull request #14700 from shandongzhejiang/main

Comments: fix some function names
pull/14812/head
Arve Knudsen 3 months ago committed by GitHub
parent
commit
2cfc7b244a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      tsdb/agent/db.go
  2. 2
      tsdb/chunks/head_chunks_test.go

2
tsdb/agent/db.go

@ -1118,7 +1118,7 @@ func (a *appender) logSeries() error {
return nil 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. // and is needed for preventing underflow.
func (a *appender) minValidTime(lastTs int64) int64 { func (a *appender) minValidTime(lastTs int64) int64 {
if lastTs < math.MinInt64+a.opts.OutOfOrderTimeWindow { if lastTs < math.MinInt64+a.opts.OutOfOrderTimeWindow {

2
tsdb/chunks/head_chunks_test.go

@ -408,7 +408,7 @@ func TestChunkDiskMapper_Truncate_WriteQueueRaceCondition(t *testing.T) {
wg.Wait() wg.Wait()
} }
// TestHeadReadWriter_TruncateAfterIterateChunksError tests for // TestHeadReadWriter_TruncateAfterFailedIterateChunks tests for
// https://github.com/prometheus/prometheus/issues/7753 // https://github.com/prometheus/prometheus/issues/7753
func TestHeadReadWriter_TruncateAfterFailedIterateChunks(t *testing.T) { func TestHeadReadWriter_TruncateAfterFailedIterateChunks(t *testing.T) {
hrw := createChunkDiskMapper(t, "") hrw := createChunkDiskMapper(t, "")

Loading…
Cancel
Save