cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1139138 - /cassandra/trunk/src/java/org/apache/cassandra/db/migration/Migration.java
Date Fri, 24 Jun 2011 02:13:27 GMT
Author: jbellis
Date: Fri Jun 24 02:13:27 2011
New Revision: 1139138

URL: http://svn.apache.org/viewvc?rev=1139138&view=rev
Log:
avoid unnecessary copy

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

Modified: cassandra/trunk/src/java/org/apache/cassandra/db/migration/Migration.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/db/migration/Migration.java?rev=1139138&r1=1139137&r2=1139138&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/db/migration/Migration.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/db/migration/Migration.java Fri Jun 24 02:13:27
2011
@@ -245,7 +245,7 @@ public abstract class Migration
         {
             throw new RuntimeException(e);
         }
-        mi.row_mutation = ByteBuffer.wrap(dob.asByteArray());
+        mi.row_mutation = ByteBuffer.wrap(dob.getData(), 0, dob.getLength());
 
         // sub deflate
         this.subdeflate(mi);



Mime
View raw message