Minor fix on segment metric (#21976)

/kind improvement

Signed-off-by: Yuchen Gao <yuchen.gao@zilliz.com>
pull/21993/head
Ten Thousand Leaves 2023-02-03 19:33:52 +08:00 committed by GitHub
parent 5316743a00
commit f9495fef00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -604,11 +604,11 @@ func (m *meta) UpdateDropChannelSegmentInfo(channel string, segments []*SegmentI
log.Error("meta update: update drop channel segment info failed",
zap.String("channel", channel),
zap.Error(err))
// Apply segment metric mutation on successful meta update.
metricMutation.commit()
} else {
log.Info("meta update: update drop channel segment info - complete",
zap.String("channel", channel))
// Apply segment metric mutation on successful meta update.
metricMutation.commit()
}
return err
}