Unverified Commit 3f0091c6 authored by Dave Cridland's avatar Dave Cridland Committed by GitHub

Merge pull request #1010 from GregDThomas/OF-891

OF-891: Ensure that the clusteringStarting/clusteringStarted flags ar…
parents e6481ce5 be61f48c
...@@ -731,9 +731,11 @@ public class CacheFactory { ...@@ -731,9 +731,11 @@ public class CacheFactory {
public static void startClustering() { public static void startClustering() {
if (isClusteringAvailable()) { if (isClusteringAvailable()) {
clusteringStarting = clusteredCacheFactoryStrategy.startCluster(); clusteringStarting = true;
clusteringStarted = clusteredCacheFactoryStrategy.startCluster();
clusteringStarting = false;
} }
if (clusteringStarting) { if (clusteringStarted) {
if (statsThread == null) { if (statsThread == null) {
// Start a timing thread with 1 second of accuracy. // Start a timing thread with 1 second of accuracy.
statsThread = new Thread("Cache Stats") { statsThread = new Thread("Cache Stats") {
......
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