mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: [Cherry-Pick] UpdateSegmentsInfo should update remaining segment info even if some one not exist (#36729)
pr: https://github.com/milvus-io/milvus/pull/36726 Signed-off-by: aoiasd <zhicheng.yue@zilliz.com>
This commit is contained in:
parent
02bd916fa4
commit
eaa948752b
@ -1001,10 +1001,12 @@ func (m *meta) UpdateSegmentsInfo(operators ...UpdateOperator) error {
|
||||
}
|
||||
|
||||
for _, operator := range operators {
|
||||
ok := operator(updatePack)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
operator(updatePack)
|
||||
}
|
||||
|
||||
// skip if all segment not exist
|
||||
if len(updatePack.segments) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
segments := lo.MapToSlice(updatePack.segments, func(_ int64, segment *SegmentInfo) *datapb.SegmentInfo { return segment.SegmentInfo })
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user