You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by ct...@apache.org on 2015/04/09 23:31:51 UTC

accumulo git commit: ACCUMULO-2131 while statement used as if statement. Changed the while to an if.

Repository: accumulo
Updated Branches:
  refs/heads/master 8fbf2dce0 -> aac619c96


ACCUMULO-2131 while statement used as if statement. Changed the while to an if.

Signed-off-by: Christopher Tubbs <ct...@apache.org>


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

Branch: refs/heads/master
Commit: aac619c969abf0b76dbaf88744a0408516d3c655
Parents: 8fbf2dc
Author: Bob Thorman <rt...@att.com>
Authored: Mon Apr 6 09:51:27 2015 -0500
Committer: Christopher Tubbs <ct...@apache.org>
Committed: Thu Apr 9 17:31:15 2015 -0400

----------------------------------------------------------------------
 .../accumulo/core/iterators/system/SourceSwitchingIterator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/aac619c9/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java b/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
index 6c40176..8e871da 100644
--- a/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
+++ b/core/src/main/java/org/apache/accumulo/core/iterators/system/SourceSwitchingIterator.java
@@ -146,7 +146,7 @@ public class SourceSwitchingIterator implements SortedKeyValueIterator<Key,Value
   }
 
   private boolean switchSource() throws IOException {
-    while (!source.isCurrent()) {
+    if (!source.isCurrent()) {
       source = source.getNewDataSource();
       iter = source.iterator();
       return true;