This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git


The following commit(s) were added to refs/heads/master by this push:
     new 325d772  TINKERPOP-2475 Barrier step touches one more element of next 
loop
     new 70d2ba8  Merge branch '3.4-dev'
325d772 is described below

commit 325d772d9be02bc51dbf1bb5efda37541ad47bd6
Author: deliliu <[email protected]>
AuthorDate: Tue Nov 17 14:38:54 2020 +0800

    TINKERPOP-2475 Barrier step touches one more element of next loop
---
 .../tinkerpop/gremlin/process/traversal/step/map/NoOpBarrierStep.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/NoOpBarrierStep.java
 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/NoOpBarrierStep.java
index d0a7d29..f31099c 100644
--- 
a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/NoOpBarrierStep.java
+++ 
b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/NoOpBarrierStep.java
@@ -64,7 +64,7 @@ public final class NoOpBarrierStep<S> extends AbstractStep<S, 
S> implements Loca
 
     @Override
     public void processAllStarts() {
-        while (this.starts.hasNext() && (this.maxBarrierSize == 
Integer.MAX_VALUE || this.barrier.size() < this.maxBarrierSize)) {
+        while ((this.maxBarrierSize == Integer.MAX_VALUE || 
this.barrier.size() < this.maxBarrierSize) && this.starts.hasNext()) {
             final Traverser.Admin<S> traverser = this.starts.next();
             traverser.setStepId(this.getNextStep().getId()); // when barrier 
is reloaded, the traversers should be at the next step
             this.barrier.add(traverser);

Reply via email to