cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sn...@apache.org
Subject cassandra git commit: Ninja-fix ambigious (and wrong, but harmless) increment
Date Tue, 15 Sep 2015 19:57:18 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 b4544846d -> 4c51b359e


Ninja-fix ambigious (and wrong, but harmless) increment


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/4c51b359
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/4c51b359
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/4c51b359

Branch: refs/heads/cassandra-3.0
Commit: 4c51b359e0b6faf47ddcb5e38770ebf581301655
Parents: b454484
Author: Robert Stupp <snazy@snazy.de>
Authored: Tue Sep 15 21:56:01 2015 +0200
Committer: Robert Stupp <snazy@snazy.de>
Committed: Tue Sep 15 21:56:01 2015 +0200

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/RowIndexEntry.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4c51b359/src/java/org/apache/cassandra/db/RowIndexEntry.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/RowIndexEntry.java b/src/java/org/apache/cassandra/db/RowIndexEntry.java
index 7f361d9..6cd6542 100644
--- a/src/java/org/apache/cassandra/db/RowIndexEntry.java
+++ b/src/java/org/apache/cassandra/db/RowIndexEntry.java
@@ -150,7 +150,8 @@ public class RowIndexEntry<T> implements IMeasurableMemory
                     int i = 0;
                     for (IndexHelper.IndexInfo info : rie.columnsIndex())
                     {
-                        offsets[i++] = i == 0 ? 0 : (int)(out.getFilePointer() - start);
+                        offsets[i] = i == 0 ? 0 : (int)(out.getFilePointer() - start);
+                        i++;
                         idxSerializer.serialize(info, out);
                     }
                 }


Mime
View raw message