Rename DiscoveryNodes#localNodeMaster to isLocalNodeElectedMaster
Original commit: elastic/x-pack-elasticsearch@ccb685fe9a
This commit is contained in:
parent
9461dde896
commit
126383439a
|
@ -69,7 +69,7 @@ public abstract class AbstractCollector<T> extends AbstractLifecycleComponent<T>
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean isLocalNodeMaster() {
|
protected boolean isLocalNodeMaster() {
|
||||||
return clusterService.state().nodes().localNodeMaster();
|
return clusterService.state().nodes().isLocalNodeElectedMaster();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue