This is an automated email from the ASF dual-hosted git repository. colegreer pushed a commit to branch repeatLimit in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit 98f9c7ac28c42ae5d2b6723c85d2350a2a97596b Author: Andrea Child <[email protected]> AuthorDate: Tue Sep 2 17:15:20 2025 -0700 Set loop name for computer algorithm. --- .../gremlin/process/traversal/step/branch/RepeatStep.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java index b1af408f79..0c6ef0fd0d 100644 --- a/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java +++ b/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/branch/RepeatStep.java @@ -270,7 +270,13 @@ public final class RepeatStep<S> extends ComputerAwareStep<S, S> implements Trav return IteratorUtils.of(start); } else { start.setStepId(this.repeatTraversal.getStartStep().getId()); - start.initialiseLoops(start.getStepId(), this.loopName); + String ln; + if (this.loopName != null) { + ln = this.loopName; + } else { + ln = start.getStepId(); + } + start.initialiseLoops(start.getStepId(), ln); if (doEmit(start, true)) { final Traverser.Admin<S> emitSplit = start.split(); emitSplit.resetLoops();
