improve if find parent, quick exit (#4107)
This commit is contained in:
parent
ab39cecb17
commit
e25b1e6008
|
|
@ -382,6 +382,8 @@ public class TraceQueryService implements Service {
|
|||
for (Span subSpan : spans) {
|
||||
if (segmentParentSpanId.equals(subSpan.getSegmentSpanId())) {
|
||||
hasParent = true;
|
||||
// if find parent, quick exit
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue