Skip to content

Commit

Permalink
fix sync store label
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Leung <[email protected]>
  • Loading branch information
rleungx committed Nov 20, 2023
1 parent 49b3251 commit f4c0876
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/mcs/scheduling/server/meta/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,10 @@ func (w *Watcher) initializeStoreWatcher() error {
w.basicCluster.PutStore(core.NewStoreInfo(store))
return nil
}
w.basicCluster.PutStore(origin.Clone(core.SetStoreState(store.GetState(), store.GetPhysicallyDestroyed())))
w.basicCluster.PutStore(origin.Clone(
core.SetStoreState(store.GetState(), store.GetPhysicallyDestroyed()),
core.SetStoreLabels(store.GetLabels()),
))
return nil
}
deleteFn := func(kv *mvccpb.KeyValue) error {
Expand Down

0 comments on commit f4c0876

Please sign in to comment.