Author: jbellis
Date: Mon Apr  6 15:10:15 2009
New Revision: 762377

URL: http://svn.apache.org/viewvc?rev=762377&view=rev
Log:
r/m no-op seeks.  patch by jbellis; reviewed by Jun Rau.  see #52

Modified:
    incubator/cassandra/trunk/src/org/apache/cassandra/io/SequenceFile.java

Modified: 
incubator/cassandra/trunk/src/org/apache/cassandra/io/SequenceFile.java
URL: 
http://svn.apache.org/viewvc/incubator/cassandra/trunk/src/org/apache/cassandra/io/SequenceFile.java?rev=762377&r1=762376&r2=762377&view=diff
==============================================================================
--- incubator/cassandra/trunk/src/org/apache/cassandra/io/SequenceFile.java 
(original)
+++ incubator/cassandra/trunk/src/org/apache/cassandra/io/SequenceFile.java Mon 
Apr  6 15:10:15 2009
@@ -123,7 +123,6 @@
             if (keyBuffer == null || keyBufLength == 0)
                 throw new IllegalArgumentException("Key cannot be NULL or of 
zero length.");
 
-            file_.seek(file_.getFilePointer());
             file_.writeInt(keyBufLength);
             file_.write(keyBuffer.getData(), 0, keyBufLength);
 
@@ -137,7 +136,6 @@
             if (key == null)
                 throw new IllegalArgumentException("Key cannot be NULL.");
 
-            file_.seek(file_.getFilePointer());
             file_.writeUTF(key);
             int length = buffer.getLength();
             file_.writeInt(length);
@@ -149,7 +147,6 @@
             if (key == null)
                 throw new IllegalArgumentException("Key cannot be NULL.");
 
-            file_.seek(file_.getFilePointer());
             file_.writeUTF(key);
             file_.writeInt(value.length);
             file_.write(value);
@@ -160,7 +157,6 @@
             if (key == null)
                 throw new IllegalArgumentException("Key cannot be NULL.");
 
-            file_.seek(file_.getFilePointer());
             file_.writeUTF(key);
             file_.writeLong(value);
         }


Reply via email to