cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alek...@apache.org
Subject [1/5] git commit: Skip auth setup if AllowAllAuthenticator is used
Date Fri, 16 Aug 2013 02:06:33 GMT
Updated Branches:
  refs/heads/trunk 8f243a912 -> 0dd3438ac


Skip auth setup if AllowAllAuthenticator is used


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

Branch: refs/heads/trunk
Commit: ea712bbbe8bb66ceb439dad0ddbb10da18a19c22
Parents: 82081c7
Author: Aleksey Yeschenko <aleksey@apache.org>
Authored: Fri Aug 16 04:52:30 2013 +0300
Committer: Aleksey Yeschenko <aleksey@apache.org>
Committed: Fri Aug 16 04:52:30 2013 +0300

----------------------------------------------------------------------
 src/java/org/apache/cassandra/auth/Auth.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ea712bbb/src/java/org/apache/cassandra/auth/Auth.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/auth/Auth.java b/src/java/org/apache/cassandra/auth/Auth.java
index c561aab..c9a42a2 100644
--- a/src/java/org/apache/cassandra/auth/Auth.java
+++ b/src/java/org/apache/cassandra/auth/Auth.java
@@ -122,6 +122,9 @@ public class Auth
      */
     public static void setup()
     {
+        if (DatabaseDescriptor.getAuthenticator() instanceof AllowAllAuthenticator)
+            return;
+
         setupAuthKeyspace();
         setupUsersTable();
 


Mime
View raw message