enhance: Fix operator apply in UpdateSegment (#44158)

Signed-off-by: sunby <sunbingyi1992@gmail.com>
This commit is contained in:
Bingyi Sun 2025-09-03 00:27:53 +08:00 committed by GitHub
parent 5ef793c393
commit 8622a2726a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {