Skip to content

Commit

Permalink
try fix data race (tikv#6083)
Browse files Browse the repository at this point in the history
ref tikv#6045

Signed-off-by: Sen Han <[email protected]>
  • Loading branch information
hnes authored Mar 6, 2023
1 parent 18a8356 commit a6e77c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ func (c *RaftCluster) putStoreImpl(store *metapb.Store, force bool) error {
labels := store.GetLabels()
if !force {
// If 'force' isn't set, the given labels will merge into those labels which already existed in the store.
labels = s.MergeLabels(labels)
labels = s.Clone().MergeLabels(labels)
}
// Update an existed store.
s = s.Clone(
Expand Down

0 comments on commit a6e77c1

Please sign in to comment.