This is an automated email from the ASF dual-hosted git repository.
zyk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 01cd2902b6d Fix duplicated create logical view in PBTree mode (#11869)
01cd2902b6d is described below
commit 01cd2902b6d4c9715cf46b5da41a66b46ccd9f34
Author: Chen YZ <[email protected]>
AuthorDate: Wed Jan 10 09:46:38 2024 +0800
Fix duplicated create logical view in PBTree mode (#11869)
---
.../schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java
index 8a5eef93914..3d99ebe86a8 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java
@@ -954,7 +954,7 @@ public class MTreeBelowSGCachedImpl {
ICachedMNode device =
checkAndAutoCreateDeviceNode(devicePath.getTailNode(), deviceParent);
try {
String leafName = path.getMeasurement();
- if (device.hasChild(leafName)) {
+ if (store.hasChild(device, leafName)) {
ICachedMNode node = device.getChild(leafName);
if (node.isMeasurement()) {
if (node.getAsMeasurementMNode().isPreDeleted()) {