You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ha...@apache.org on 2021/09/28 06:27:16 UTC

[iotdb] branch MNodeIntern updated: Intern MNode name String

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 <hh...@outlook.com>
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);
   }
 
   /**