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 2020/10/17 04:46:24 UTC
[skywalking] branch master updated: Fix inconsistent logic in
PrefixMatch (#5681)
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 45e02ec Fix inconsistent logic in PrefixMatch (#5681)
45e02ec is described below
commit 45e02ec106d8c7ddc2604fcc22a934760ddf8d40
Author: ggndnn <gg...@163.com>
AuthorDate: Sat Oct 17 12:46:10 2020 +0800
Fix inconsistent logic in PrefixMatch (#5681)
Co-authored-by: ggnn <gg...@ggnndeMacBook-Pro.local>
Co-authored-by: kezhenxu94 <ke...@apache.org>
---
.../org/apache/skywalking/apm/agent/core/plugin/match/PrefixMatch.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/PrefixMatch.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/PrefixMatch.java
index 2324539..c6a0a4c 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/PrefixMatch.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/plugin/match/PrefixMatch.java
@@ -44,7 +44,7 @@ public class PrefixMatch implements IndirectMatch {
if (junction == null) {
junction = ElementMatchers.nameStartsWith(prefix);
} else {
- junction = junction.and(ElementMatchers.nameStartsWith(prefix));
+ junction = junction.or(ElementMatchers.nameStartsWith(prefix));
}
}