You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2014/01/14 22:22:07 UTC

[3/6] git commit: Don't shutdown a nonexistant native server on 1.2, either.

Don't shutdown a nonexistant native server on 1.2, either.


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0d38b25f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0d38b25f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0d38b25f

Branch: refs/heads/trunk
Commit: 0d38b25f6fa3b7b52f5e64780f6591eabc7fc76d
Parents: 3405878
Author: Brandon Williams <br...@apache.org>
Authored: Tue Jan 14 15:19:51 2014 -0600
Committer: Brandon Williams <br...@apache.org>
Committed: Tue Jan 14 15:19:51 2014 -0600

----------------------------------------------------------------------
 src/java/org/apache/cassandra/service/StorageService.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0d38b25f/src/java/org/apache/cassandra/service/StorageService.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java
index 5ae02e9..043a1eb 100644
--- a/src/java/org/apache/cassandra/service/StorageService.java
+++ b/src/java/org/apache/cassandra/service/StorageService.java
@@ -355,7 +355,8 @@ public class StorageService extends NotificationBroadcasterSupport implements IE
         {
             throw new IllegalStateException("No configured daemon");
         }
-        daemon.nativeServer.stop();
+        if (daemon.nativeServer != null)
+            daemon.nativeServer.stop();
     }
 
     public boolean isNativeTransportRunning()