Fix panic when BuildIndex 0 while err = nil (#6125)

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/6128/head
congqixia 2021-06-25 17:58:09 +08:00 committed by GitHub
parent 2d294dc764
commit 384f440dbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ func (c *Core) startDataNodeFlushedSegmentLoop() {
if err == nil && info.BuildID != 0 {
info.EnableIndex = true
} else {
log.Error("build index fail", zap.String("error", err.Error()))
log.Error("build index fail", zap.Int64("buildid", info.BuildID), zap.Error(err))
}
segIdxInfos = append(segIdxInfos, &info)