Commit e30e2b29 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed #isSeniorClusterMember when it's used in the middle of the cluster startup.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8515 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5678a1c3
...@@ -163,11 +163,6 @@ public class CacheFactory { ...@@ -163,11 +163,6 @@ public class CacheFactory {
* @return true if this cluster member is the senior or if clustering is not enabled. * @return true if this cluster member is the senior or if clustering is not enabled.
*/ */
public static boolean isSeniorClusterMember() { public static boolean isSeniorClusterMember() {
synchronized(CacheFactory.class) {
if (!isClusteringStarted()) {
return true;
}
}
return cacheFactoryStrategy.isSeniorClusterMember(); return cacheFactoryStrategy.isSeniorClusterMember();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment