[skip ci]Add comments for retention (#10316)

Signed-off-by: fishpenguin <kun.yu@zilliz.com>
pull/10344/head
yukun 2021-10-21 10:59:01 +08:00 committed by GitHub
parent c2fa2e940d
commit f15dc150f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -274,6 +274,7 @@ func (ri *retentionInfo) loadRetentionInfo(topic string, wg *sync.WaitGroup) {
ri.lastRetentionTime.Store(topic, lastRetentionTs)
}
// retention do time ticker and trigger retention check and operation for each topic
func (ri *retentionInfo) retention() error {
log.Debug("Rocksmq retention goroutine start!")
// Do retention check every 6s