This is an automated email from the ASF dual-hosted git repository.
jackietien 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 f47675302df Fix PBTree view device isAligned should be null
f47675302df is described below
commit f47675302df95d78b6f45a2efeb06abe38b7f200
Author: Chen YZ <[email protected]>
AuthorDate: Tue Oct 31 14:49:39 2023 +0800
Fix PBTree view device isAligned should be null
---
.../schemaregion/mtree/impl/pbtree/MTreeBelowSGCachedImpl.java | 4 ++++
1 file changed, 4 insertions(+)
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 138823eaf7b..c36c622824f 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
@@ -928,6 +928,10 @@ public class MTreeBelowSGCachedImpl {
if (entityMNode.isDatabase()) {
replaceStorageGroupMNode(entityMNode.getAsDatabaseMNode());
}
+ // this parent has no measurement before. The leafName is his
first child who is a
+ // logical
+ // view.
+ entityMNode.setAligned(null);
device = entityMNode.getAsMNode();
}