Skip to content

Commit

Permalink
Change return value of public method from ClusterManagerService to Ma…
Browse files Browse the repository at this point in the history
…sterService to keep backwards compatibility

Signed-off-by: Tianli Feng <[email protected]>
  • Loading branch information
Tianli Feng committed Jul 14, 2022
1 parent 10925bc commit c186bec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
* @opensearch.internal
*/
public class ClusterService extends AbstractLifecycleComponent {
private final ClusterManagerService clusterManagerService;
private final MasterService clusterManagerService;

private final ClusterApplierService clusterApplierService;

Expand Down Expand Up @@ -92,15 +92,15 @@ public ClusterService(Settings settings, ClusterSettings clusterSettings, Thread
this(
settings,
clusterSettings,
new ClusterManagerService(settings, clusterSettings, threadPool),
new MasterService(settings, clusterSettings, threadPool),
new ClusterApplierService(Node.NODE_NAME_SETTING.get(settings), settings, clusterSettings, threadPool)
);
}

public ClusterService(
Settings settings,
ClusterSettings clusterSettings,
ClusterManagerService clusterManagerService,
MasterService clusterManagerService,
ClusterApplierService clusterApplierService
) {
this.settings = settings;
Expand Down Expand Up @@ -218,7 +218,7 @@ public void addLocalNodeMasterListener(LocalNodeClusterManagerListener listener)
clusterApplierService.addLocalNodeMasterListener(listener);
}

public ClusterManagerService getMasterService() {
public MasterService getMasterService() {
return clusterManagerService;
}

Expand Down

0 comments on commit c186bec

Please sign in to comment.