Skip to content

Commit

Permalink
owner, metrics(ticdc): fix metrics (#10459)
Browse files Browse the repository at this point in the history
close #10438
  • Loading branch information
CharlesCheung96 committed Jan 23, 2024
1 parent 8f00d7a commit 093f908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdc/owner/changefeed.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ func (c *changefeed) initMetrics() {

// releaseResources is idempotent.
func (c *changefeed) releaseResources(ctx cdcContext.Context) {
c.cleanupMetrics()
if c.isReleased {
return
}
Expand Down Expand Up @@ -703,7 +704,6 @@ func (c *changefeed) releaseResources(ctx cdcContext.Context) {
c.scheduler = nil
}

c.cleanupMetrics()
c.schema = nil
c.barriers = nil
c.initialized = false
Expand Down

0 comments on commit 093f908

Please sign in to comment.