This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch MNodeIntern
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/MNodeIntern by this push:
     new 9594638  Intern MNode name String
9594638 is described below

commit 9594638603b793893bd767012f67bd5b3129ba87
Author: HTHou <[email protected]>
AuthorDate: Tue Sep 28 14:25:17 2021 +0800

    Intern MNode name String
---
 server/src/main/java/org/apache/iotdb/db/metadata/mnode/MNode.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/src/main/java/org/apache/iotdb/db/metadata/mnode/MNode.java 
b/server/src/main/java/org/apache/iotdb/db/metadata/mnode/MNode.java
index 3519fb2..f5386e3 100644
--- a/server/src/main/java/org/apache/iotdb/db/metadata/mnode/MNode.java
+++ b/server/src/main/java/org/apache/iotdb/db/metadata/mnode/MNode.java
@@ -107,7 +107,7 @@ public class MNode implements Serializable {
     }
 
     child.parent = this;
-    children.putIfAbsent(name, child);
+    children.putIfAbsent(name.intern(), child);
   }
 
   /**

Reply via email to