[skip e2e]Format log for LoadMetaFromETCD in indexcoord (#14234)

Signed-off-by: Cai.Zhang <cai.zhang@zilliz.com>
pull/13459/head
cai.zhang 2021-12-25 14:58:19 +08:00 committed by GitHub
parent 33afe1b576
commit 74cf787c1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -502,12 +502,12 @@ func (mt *metaTable) LoadMetaFromETCD(indexBuildID int64, revision int64) bool {
mt.lock.Lock()
defer mt.lock.Unlock()
meta, ok := mt.indexBuildID2Meta[indexBuildID]
log.Debug("IndexCoord metaTable LoadMetaFromETCD", zap.Any("indexBuildID", indexBuildID),
zap.Any("revision", revision), zap.Any("ok", ok))
log.Debug("IndexCoord metaTable LoadMetaFromETCD", zap.Int64("indexBuildID", indexBuildID),
zap.Int64("revision", revision), zap.Bool("ok", ok))
if ok {
log.Debug("IndexCoord metaTable LoadMetaFromETCD",
zap.Any("meta.revision", meta.revision),
zap.Any("revision", revision))
zap.Int64("meta.revision", meta.revision),
zap.Int64("revision", revision))
if meta.revision >= revision {
return false