cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1023326 - /cassandra/trunk/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
Date Sat, 16 Oct 2010 16:24:49 GMT
Author: jbellis
Date: Sat Oct 16 16:24:48 2010
New Revision: 1023326

URL: http://svn.apache.org/viewvc?rev=1023326&view=rev
Log:
rename dataPosition -> rowPosition.  patch by jbellis

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java?rev=1023326&r1=1023325&r2=1023326&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java Sat Oct 16
16:24:48 2010
@@ -275,14 +275,14 @@ public class SSTableWriter extends SSTab
             try
             {
                 DecoratedKey key;
-                long dataPosition = 0;
-                while (dataPosition < dfile.length())
+                long rowPosition = 0;
+                while (rowPosition < dfile.length())
                 {
                     key = SSTableReader.decodeKey(StorageService.getPartitioner(), desc,
FBUtilities.readShortByteArray(dfile));
                     long dataSize = SSTableReader.readRowSize(dfile, desc);
-                    iwriter.afterAppend(key, dataPosition);
-                    dataPosition = dfile.getFilePointer() + dataSize;
-                    dfile.seek(dataPosition);
+                    iwriter.afterAppend(key, rowPosition);
+                    rowPosition = dfile.getFilePointer() + dataSize;
+                    dfile.seek(rowPosition);
                     rows++;
                 }
             }



Mime
View raw message