This is an automated email from the ASF dual-hosted git repository.
justinchen pushed a commit to branch c-ger-p
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/c-ger-p by this push:
new 874e294f675 fix
874e294f675 is described below
commit 874e294f67512bebedc3794462a77803c2a4c703
Author: Caideyipi <[email protected]>
AuthorDate: Thu Apr 16 10:14:41 2026 +0800
fix
---
.../org/apache/iotdb/commons/path/PathPatternTree.java | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternTree.java
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternTree.java
index d6290f339a5..53014d0c3a5 100644
---
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternTree.java
+++
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/path/PathPatternTree.java
@@ -95,17 +95,8 @@ public class PathPatternTree {
appendBranchWithoutPrune(root, pathNodes, 0);
}
- public void appendPathPattern(final PartialPath pathPattern) {
- appendPathPattern(pathPattern, false);
- }
-
- /** Add a pathPattern (may contain wildcards) to pathPatternList. */
- public void appendPathPattern(final PartialPath pathPattern, final boolean
isReload) {
+ public void appendPathPattern(PartialPath pathPattern) {
if (useWildcard) {
- // This does not guarantee multi-thread safety
- if (isReload && (pathPatternList == null || pathPatternList.isEmpty())) {
- pathPatternList = getAllPathPatterns();
- }
boolean isExist = false;
for (PartialPath path : pathPatternList) {
if (path.include(pathPattern)) {
@@ -119,9 +110,6 @@ public class PathPatternTree {
pathPatternList.removeIf(pathPattern::include);
pathPatternList.add(pathPattern);
}
- if (isReload) {
- root.clear();
- }
} else {
appendBranchWithoutPrune(root, pathPattern.getNodes(), 0);
}