move ZenDiscovery.rejoin to protected
So we can override it from tests and plugins.
This commit is contained in:
parent
2c20658204
commit
a2f94f2e2f
|
@ -989,7 +989,7 @@ public class ZenDiscovery extends AbstractLifecycleComponent<Discovery> implemen
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private ClusterState rejoin(ClusterState clusterState, String reason) {
|
protected ClusterState rejoin(ClusterState clusterState, String reason) {
|
||||||
|
|
||||||
// *** called from within an cluster state update task *** //
|
// *** called from within an cluster state update task *** //
|
||||||
assert Thread.currentThread().getName().contains(InternalClusterService.UPDATE_THREAD_NAME);
|
assert Thread.currentThread().getName().contains(InternalClusterService.UPDATE_THREAD_NAME);
|
||||||
|
|
Loading…
Reference in New Issue