fix: [cherry-pick] Get current index version from knowhere (#34902)

issue: #34900 

master pr: #34901

Signed-off-by: Cai Zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2024-07-23 10:25:52 +08:00 committed by GitHub
parent 176034d1d0
commit 88da0251af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -376,6 +376,8 @@ func (it *indexBuildTask) PreExecute(ctx context.Context) error {
}
}
it.req.CurrentIndexVersion = getCurrentIndexVersion(it.req.GetCurrentIndexVersion())
log.Ctx(ctx).Info("Successfully prepare indexBuildTask", zap.Int64("buildID", it.req.GetBuildID()),
zap.Int64("collectionID", it.req.GetCollectionID()), zap.Int64("segmentID", it.req.GetSegmentID()))
return nil
@ -566,7 +568,6 @@ func (it *indexBuildTask) parseFieldMetaFromBinlog(ctx context.Context) error {
break
}
}
it.req.CurrentIndexVersion = getCurrentIndexVersion(it.req.GetCurrentIndexVersion())
return nil
}