Updated Branches:
  refs/heads/trunk d12184d55 -> 0ce9220a5

make RowMutation mutable again in SystemTable.serializeSchema


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

Branch: refs/heads/trunk
Commit: 0ce9220a5d638bda3ccd37a81e270ae054a41ff9
Parents: d12184d
Author: Jonathan Ellis <[email protected]>
Authored: Tue Mar 5 04:16:40 2013 +0100
Committer: Jonathan Ellis <[email protected]>
Committed: Tue Mar 5 04:16:51 2013 +0100

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/SystemTable.java |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0ce9220a/src/java/org/apache/cassandra/db/SystemTable.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/SystemTable.java 
b/src/java/org/apache/cassandra/db/SystemTable.java
index 70152d3..c6a6e59 100644
--- a/src/java/org/apache/cassandra/db/SystemTable.java
+++ b/src/java/org/apache/cassandra/db/SystemTable.java
@@ -763,11 +763,10 @@ public class SystemTable
                 continue;
 
             RowMutation mutation = mutationMap.get(schemaRow.key);
-
             if (mutation == null)
             {
-                mutationMap.put(schemaRow.key, new 
RowMutation(Table.SYSTEM_KS, schemaRow));
-                continue;
+                mutation = new RowMutation(Table.SYSTEM_KS, schemaRow.key.key);
+                mutationMap.put(schemaRow.key, mutation);
             }
 
             mutation.add(schemaRow.cf);

Reply via email to