cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1003814 - /cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java
Date Sat, 02 Oct 2010 15:31:13 GMT
Author: jbellis
Date: Sat Oct  2 15:31:13 2010
New Revision: 1003814

URL: http://svn.apache.org/viewvc?rev=1003814&view=rev
Log:
revert code intended for 1532 committed prematurely

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java?rev=1003814&r1=1003813&r2=1003814&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/migration/UpdateColumnFamily.java Sat
Oct  2 15:31:13 2010
@@ -51,6 +51,10 @@ public class UpdateColumnFamily extends 
         this.oldCfm = oldCfm;
         this.newCfm = newCfm;
         
+        // we'll allow this eventually.
+        if (!oldCfm.column_metadata.equals(newCfm.column_metadata))
+            throw new ConfigurationException("Column meta information is not identical.");
+        
         // clone ksm but include the new cf def.
         KSMetaData newKsm = makeNewKeyspaceDefinition(ksm);
         rm = Migration.makeDefinitionMutation(newKsm, null, newVersion);



Mime
View raw message