Skip to content

Commit

Permalink
[enhance:lindb#1021]: add more comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joyant committed Apr 29, 2024
1 parent f56cd06 commit 919f3a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index/metric_index_segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ func (m *metricIndexSegment) GetGroupingContext(ctx *flow.ShardExecuteContext) e
return nil
}

// GetOrCreateIndex returns MetricIndexDatabase as familyTime
func (m *metricIndexSegment) GetOrCreateIndex(familyTime int64) (MetricIndexDatabase, error) {
segment := timeutil.GetSegment(familyTime)
index, ok := m.indices[segment]
Expand Down

0 comments on commit 919f3a4

Please sign in to comment.