mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: disable reload partstats by config (#32702)
Signed-off-by: MrPresent-Han <chun.han@zilliz.com>
This commit is contained in:
parent
0359139299
commit
ac82cef04d
@ -873,6 +873,8 @@ func NewShardDelegator(ctx context.Context, collectionID UniqueID, replicaID Uni
|
||||
go sd.watchTSafe()
|
||||
}
|
||||
log.Info("finish build new shardDelegator")
|
||||
sd.maybeReloadPartitionStats(ctx)
|
||||
if paramtable.Get().QueryNodeCfg.EnableSegmentPrune.GetAsBool() {
|
||||
sd.maybeReloadPartitionStats(ctx)
|
||||
}
|
||||
return sd, nil
|
||||
}
|
||||
|
||||
@ -504,7 +504,9 @@ func (sd *shardDelegator) LoadSegments(ctx context.Context, req *querypb.LoadSeg
|
||||
lo.ForEach(req.GetInfos(), func(info *querypb.SegmentLoadInfo, _ int) {
|
||||
partStatsToReload = append(partStatsToReload, info.PartitionID)
|
||||
})
|
||||
sd.maybeReloadPartitionStats(ctx, partStatsToReload...)
|
||||
if paramtable.Get().QueryNodeCfg.EnableSegmentPrune.GetAsBool() {
|
||||
sd.maybeReloadPartitionStats(ctx, partStatsToReload...)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
@ -906,7 +908,9 @@ func (sd *shardDelegator) ReleaseSegments(ctx context.Context, req *querypb.Rele
|
||||
partitionsToReload = append(partitionsToReload, segment.Partition())
|
||||
}
|
||||
})
|
||||
sd.maybeReloadPartitionStats(ctx, partitionsToReload...)
|
||||
if paramtable.Get().QueryNodeCfg.EnableSegmentPrune.GetAsBool() {
|
||||
sd.maybeReloadPartitionStats(ctx, partitionsToReload...)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user