Robert Stupp created CASSANDRA-7681:
---------------------------------------

             Summary: Ninja: DefsTable.mergeSchemaInternal
                 Key: CASSANDRA-7681
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7681
             Project: Cassandra
          Issue Type: Improvement
            Reporter: Robert Stupp
            Assignee: Robert Stupp
            Priority: Trivial


{noformat}
+++ b/src/java/org/apache/cassandra/db/DefsTables.java
@@ -171,7 +171,7 @@ public class DefsTables
         // compare before/after schemas of the affected keyspaces only
         Set<String> keyspaces = new HashSet<>(mutations.size());
         for (Mutation mutation : mutations)
-            keyspaces.add(ByteBufferUtil.string(mutation.key()));
+            keyspaces.add(mutation.getKeyspaceName());
 
         // current state of the schema
         Map<DecoratedKey, ColumnFamily> oldKeyspaces = 
SystemKeyspace.getSchema(SystemKeyspace.SCHEMA_KEYSPACES_CF, keyspaces);
{noformat}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to