You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/12/26 02:02:50 UTC
[skywalking] branch master updated: improve if find parent,
quick exit (#4107)
This is an automated email from the ASF dual-hosted git repository.
wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git
The following commit(s) were added to refs/heads/master by this push:
new e25b1e6 improve if find parent, quick exit (#4107)
e25b1e6 is described below
commit e25b1e60085224d78210dc590292ebf939565742
Author: aderm <39...@qq.com>
AuthorDate: Thu Dec 26 10:02:42 2019 +0800
improve if find parent, quick exit (#4107)
---
.../org/apache/skywalking/oap/server/core/query/TraceQueryService.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/TraceQueryService.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/TraceQueryService.java
index f4ea17e..696ce84 100644
--- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/TraceQueryService.java
+++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/query/TraceQueryService.java
@@ -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;
}
}