From f9495fef0064e5637a8e90a38110e20f173e0fa3 Mon Sep 17 00:00:00 2001 From: Ten Thousand Leaves <69466447+soothing-rain@users.noreply.github.com> Date: Fri, 3 Feb 2023 19:33:52 +0800 Subject: [PATCH] Minor fix on segment metric (#21976) /kind improvement Signed-off-by: Yuchen Gao --- internal/datacoord/meta.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/datacoord/meta.go b/internal/datacoord/meta.go index a1429a550..9527b4656 100644 --- a/internal/datacoord/meta.go +++ b/internal/datacoord/meta.go @@ -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 } -- GitLab