Updated Branches: refs/heads/cassandra-2.0 bc12d73a5 -> 69397ef5f
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/cassandra-2.0 Commit: ea712bbbe8bb66ceb439dad0ddbb10da18a19c22 Parents: 82081c7 Author: Aleksey Yeschenko <alek...@apache.org> Authored: Fri Aug 16 04:52:30 2013 +0300 Committer: Aleksey Yeschenko <alek...@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();