Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
add deploy mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ZuLiangWang committed Oct 7, 2023
1 parent 52b8f67 commit 75499a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/coordinator/scheduler/rebalanced_shard_scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ func NewRebalancedShardScheduler(logger *zap.Logger, factory *coordinator.Factor
}
}

func (r *RebalancedShardScheduler) UpdateDeployMode(_ context.Context, enable bool) {
r.updateDeployMode(enable)
}

func (r *RebalancedShardScheduler) Schedule(ctx context.Context, clusterSnapshot metadata.Snapshot) (ScheduleResult, error) {
// RebalancedShardScheduler can only be scheduled when the cluster is not empty.
if clusterSnapshot.Topology.ClusterView.State == storage.ClusterStateEmpty {
Expand Down

0 comments on commit 75499a6

Please sign in to comment.