mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
fix: support skip load json stats when disable jsonstats (#45098)
pr: #45101 Signed-off-by: luzhang <luzhang@zilliz.com> Co-authored-by: luzhang <luzhang@zilliz.com>
This commit is contained in:
parent
9ed77d4484
commit
78d70db6fd
@ -1208,6 +1208,11 @@ func (s *LocalSegment) LoadJSONKeyIndex(ctx context.Context, jsonKeyStats *datap
|
||||
}
|
||||
defer s.ptrLock.Unpin()
|
||||
|
||||
if !paramtable.Get().CommonCfg.EnabledJSONKeyStats.GetAsBool() {
|
||||
log.Ctx(ctx).Info("json key stats is not enabled, skip loading json key index")
|
||||
return nil
|
||||
}
|
||||
|
||||
if jsonKeyStats.GetJsonKeyStatsDataFormat() == 0 {
|
||||
log.Ctx(ctx).Info("load json key index failed dataformat invalid", zap.Int64("dataformat", jsonKeyStats.GetJsonKeyStatsDataFormat()), zap.Int64("field id", jsonKeyStats.GetFieldID()), zap.Any("json key logs", jsonKeyStats))
|
||||
return nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user