Skip to content

Commit

Permalink
This is an automated cherry-pick of pingcap#56362
Browse files Browse the repository at this point in the history
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
  • Loading branch information
fishiu authored and ti-chi-bot committed Nov 5, 2024
1 parent 5518942 commit 3e0deff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/owner/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ go_test(
],
embed = [":owner"],
flaky = True,
<<<<<<< HEAD
shard_count = 10,
=======
shard_count = 9,
>>>>>>> afdd5c2ecd5 (owner: fix data race on ownerManager.campaignCancel (#56362))
deps = [
"//pkg/ddl",
"//pkg/infoschema",
Expand Down
4 changes: 4 additions & 0 deletions pkg/owner/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,11 @@ func (m *ownerManager) CampaignOwner(withTTL ...int) error {
m.wg.Add(1)
var campaignContext context.Context
campaignContext, m.campaignCancel = context.WithCancel(m.ctx)
<<<<<<< HEAD
go m.campaignLoop(campaignContext, campaignSession)
=======
go m.campaignLoop(campaignContext, session)
>>>>>>> afdd5c2ecd5 (owner: fix data race on ownerManager.campaignCancel (#56362))
return nil
}

Expand Down

0 comments on commit 3e0deff

Please sign in to comment.