improve if find parent, quick exit (#4107)

This commit is contained in:
aderm 2019-12-26 10:02:42 +08:00 committed by 吴晟 Wu Sheng
parent ab39cecb17
commit e25b1e6008
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}
}