cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1171248 - /cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
Date Thu, 15 Sep 2011 19:54:25 GMT
Author: jbellis
Date: Thu Sep 15 19:54:24 2011
New Revision: 1171248

URL: http://svn.apache.org/viewvc?rev=1171248&view=rev
Log:
clean up duplicate code
patch by jbellis

Modified:
    cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java

Modified: cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java?rev=1171248&r1=1171247&r2=1171248&view=diff
==============================================================================
--- cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
(original)
+++ cassandra/branches/cassandra-1.0.0/src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java
Thu Sep 15 19:54:24 2011
@@ -100,9 +100,7 @@ public class CommitLogSegment
         long currentPosition = -1L;
         try
         {
-            currentPosition = logWriter.getFilePointer();
-            assert currentPosition <= Integer.MAX_VALUE;
-            ReplayPosition cLogCtx = new ReplayPosition(id, (int) currentPosition);
+            ReplayPosition cLogCtx = getContext();
 
             for (ColumnFamily columnFamily : rowMutation.getColumnFamilies())
             {



Mime
View raw message