luoluoyuyu commented on code in PR #17672:
URL: https://github.com/apache/iotdb/pull/17672#discussion_r3309377953


##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/mem/MTreeBelowSGMemoryImpl.java:
##########
@@ -315,7 +355,7 @@ public IMeasurementMNode<IMemMNode> createTimeSeries(
       if (device.isDevice()) {
         entityMNode = device.getAsDeviceMNode();
       } else {
-        entityMNode = store.setToEntity(device);
+        entityMNode = setToEntityAndUpdateFlags(device);

Review Comment:
   setToEntityAndUpdateFlags marks ancestors when a node becomes a device. 
Please confirm refreshAncestorsHavingDeviceDescendant on 
deleteEmptyInternalMNode keeps flags correct when the last device under a 
prefix is removed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to