Updated Branches: refs/heads/trunk 6f4dc48b4 -> 2e63d096c
fix off-by-one Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2e63d096 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2e63d096 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2e63d096 Branch: refs/heads/trunk Commit: 2e63d096c3d80a9c7be7fc76d9949c941b6b1f9e Parents: 6f4dc48 Author: Jonathan Ellis <[email protected]> Authored: Sun Mar 17 09:45:49 2013 -0500 Committer: Jonathan Ellis <[email protected]> Committed: Sun Mar 17 09:45:49 2013 -0500 ---------------------------------------------------------------------- .../cassandra/db/compaction/LeveledManifest.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/2e63d096/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java ---------------------------------------------------------------------- diff --git a/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java b/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java index 643fe44..71356f0 100644 --- a/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java +++ b/src/java/org/apache/cassandra/db/compaction/LeveledManifest.java @@ -274,7 +274,7 @@ public class LeveledManifest public synchronized int getLevelSize(int i) { - if (i > generations.length) + if (i >= generations.length) throw new ArrayIndexOutOfBoundsException("Maximum valid generation is " + (generations.length - 1)); return generations[i].size(); }
