warn when expectedOptions does NOT contain key

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

Branch: refs/heads/trunk
Commit: 146f4bd9e730425db1065a86bb4303d38a7e84ac
Parents: ca104ba
Author: Jonathan Ellis <jbel...@apache.org>
Authored: Wed May 9 13:26:36 2012 -0500
Committer: Jonathan Ellis <jbel...@apache.org>
Committed: Wed May 9 14:52:03 2012 -0500

----------------------------------------------------------------------
 .../locator/AbstractReplicationStrategy.java       |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/146f4bd9/src/java/org/apache/cassandra/locator/AbstractReplicationStrategy.java
----------------------------------------------------------------------
diff --git 
a/src/java/org/apache/cassandra/locator/AbstractReplicationStrategy.java 
b/src/java/org/apache/cassandra/locator/AbstractReplicationStrategy.java
index bed74ae..b654fe2 100644
--- a/src/java/org/apache/cassandra/locator/AbstractReplicationStrategy.java
+++ b/src/java/org/apache/cassandra/locator/AbstractReplicationStrategy.java
@@ -254,7 +254,7 @@ public abstract class AbstractReplicationStrategy
     {
         for (String key : configOptions.keySet())
         {
-            if (expectedOptions.contains(key))
+            if (!expectedOptions.contains(key))
                 logger.warn("Unrecognized strategy option {" + key + "} passed 
to " + getClass().getSimpleName() + " for keyspace " + table);
         }
     }

Reply via email to