mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
Fix retention datarace (#9828)
Signed-off-by: fishpenguin <kun.yu@zilliz.com>
This commit is contained in:
parent
8f5bf46705
commit
67d38d6cf1
@ -277,7 +277,7 @@ func (ri *retentionInfo) loadRetentionInfo(topic string, wg *sync.WaitGroup) {
|
||||
func (ri *retentionInfo) retention() error {
|
||||
log.Debug("Rocksmq retention goroutine start!")
|
||||
// Do retention check every 6s
|
||||
ticker := time.NewTicker(time.Duration(TickerTimeInSeconds * int64(time.Second)))
|
||||
ticker := time.NewTicker(time.Duration(atomic.LoadInt64(&TickerTimeInSeconds) * int64(time.Second)))
|
||||
|
||||
for {
|
||||
select {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user