Skip to content

Commit

Permalink
get/delete keeper support hetero
Browse files Browse the repository at this point in the history
  • Loading branch information
ndi-trip committed Nov 22, 2023
1 parent 9d398da commit 4259305
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class KeeperUpdateController extends AbstractConsoleController {
@Autowired
protected ClusterService clusterService;

@ClusterTypeLimit(value = {ClusterType.ONE_WAY})
@ClusterTypeLimit(value = {ClusterType.ONE_WAY, ClusterType.HETERO})
@RequestMapping(value = "/keepers/{dcId}/" + CLUSTER_ID_PATH_VARIABLE + "/" + SHARD_ID_PATH_VARIABLE, method = RequestMethod.GET)
public List<String> getKeepers(@PathVariable String dcId, @PathVariable String clusterId,
@PathVariable String shardId) {
Expand Down Expand Up @@ -107,7 +107,7 @@ public RetMessage addKeepers(@PathVariable String dcId, @PathVariable String clu
}
}

@ClusterTypeLimit(value = {ClusterType.ONE_WAY})
@ClusterTypeLimit(value = {ClusterType.ONE_WAY, ClusterType.HETERO})
@RequestMapping(value = "/keepers/{dcId}/" + CLUSTER_ID_PATH_VARIABLE + "/" + SHARD_ID_PATH_VARIABLE, method = RequestMethod.DELETE)
public RetMessage deleteKeepers(@PathVariable String dcId, @PathVariable String clusterId,
@PathVariable String shardId) {
Expand Down

0 comments on commit 4259305

Please sign in to comment.