Skip to content

Instantly share code, notes, and snippets.

@yukim
Created November 20, 2012 18:06
Show Gist options
  • Save yukim/4119701 to your computer and use it in GitHub Desktop.
Save yukim/4119701 to your computer and use it in GitHub Desktop.
Initialized flag need to set to true
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index 0206f40..17b21d9 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -410,6 +410,7 @@ public class StorageService implements IEndpointStateChangeSubscriber, StorageSe
throw new UnsupportedOperationException("StorageService does not support switching modes.");
return;
}
+ initialized = true;
isClientMode = false;
// Ensure StorageProxy is initialized on start-up; see CASSANDRA-3797.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment