mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 19:39:21 +08:00
Fix ts loop
Signed-off-by: neza2017 <yefu.chen@zilliz.com>
This commit is contained in:
parent
c1dcc7c88a
commit
9e0fc0b169
@ -368,12 +368,12 @@ func (c *Core) tsLoop() {
|
||||
select {
|
||||
case <-tsoTicker.C:
|
||||
if err := c.tsoAllocator.UpdateTSO(); err != nil {
|
||||
log.Warn("failed to update timestamp", zap.String("error", err.Error()))
|
||||
return
|
||||
log.Warn("failed to update timestamp: ", zap.Error(err))
|
||||
continue
|
||||
}
|
||||
if err := c.idAllocator.UpdateID(); err != nil {
|
||||
log.Warn("failed to update id", zap.String("error", err.Error()))
|
||||
return
|
||||
log.Warn("failed to update id: ", zap.Error(err))
|
||||
continue
|
||||
}
|
||||
case <-ctx.Done():
|
||||
// Server is closed and it should return nil.
|
||||
|
Loading…
Reference in New Issue
Block a user