mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: Fix operator apply in UpdateSegment (#44158)
Signed-off-by: sunby <sunbingyi1992@gmail.com>
This commit is contained in:
parent
5ef793c393
commit
8622a2726a
@ -745,7 +745,9 @@ func (m *meta) UpdateSegment(segmentID int64, operators ...SegmentOperator) erro
|
||||
|
||||
var updated bool
|
||||
for _, operator := range operators {
|
||||
updated = updated || operator(cloned)
|
||||
if operator(cloned) {
|
||||
updated = true
|
||||
}
|
||||
}
|
||||
|
||||
if !updated {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user