cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject [14/15] git commit: fix break-when-done check
Date Wed, 24 Apr 2013 01:15:26 GMT
fix break-when-done check


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

Branch: refs/heads/cassandra-1.2
Commit: 79c2ff7c7ee194a8f9bf083bf9302a96743c6a72
Parents: 3d55724
Author: Jonathan Ellis <jbellis@apache.org>
Authored: Tue Apr 23 13:14:29 2013 -0500
Committer: Jonathan Ellis <jbellis@apache.org>
Committed: Tue Apr 23 13:14:29 2013 -0500

----------------------------------------------------------------------
 .../db/columniterator/SSTableNamesIterator.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/79c2ff7c/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java b/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java
index 3750665..32c0190 100644
--- a/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java
+++ b/src/java/org/apache/cassandra/db/columniterator/SSTableNamesIterator.java
@@ -188,7 +188,7 @@ public class SSTableNamesIterator extends SimpleAbstractColumnIterator
implement
                 if (columnNames.contains(column.name()))
                 {
                     result.add(column);
-                    if (++n > columns.size())
+                    if (++n >= columns.size())
                         break;
                 }
             }


Mime
View raw message