MarcosZyk commented on code in PR #11661:
URL: https://github.com/apache/iotdb/pull/11661#discussion_r1417100058
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/mnode/impl/CachedBasicInternalMNode.java:
##########
@@ -181,11 +164,31 @@ public void setChildren(IMNodeContainer<ICachedMNode>
children) {
*/
@Override
public int estimateSize() {
- return 8 + 80 + 192 + super.estimateSize();
+ return 8
+ + 80
+ + 192
+ + super.estimateSize()
+ + 8
+ + (deviceInfo == null ? 0 : deviceInfo.estimateSize());
Review Comment:
Added.
##########
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/mnode/impl/CachedBasicInternalMNode.java:
##########
@@ -181,11 +164,31 @@ public void setChildren(IMNodeContainer<ICachedMNode>
children) {
*/
@Override
public int estimateSize() {
- return 8 + 80 + 192 + super.estimateSize();
+ return 8
+ + 80
+ + 192
+ + super.estimateSize()
+ + 8
+ + (deviceInfo == null ? 0 : deviceInfo.estimateSize());
+ }
+
+ @Override
+ public MNodeType getMNodeType(Boolean isConfig) {
Review Comment:
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]