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 f463c11830e fix bug : the change logic error of the
CachedMNodeContainerIterator (#12147)
f463c11830e is described below
commit f463c11830ef2ffb38129d5b1ed538f78d9acc55
Author: linxt20 <[email protected]>
AuthorDate: Mon Mar 11 11:25:09 2024 +0800
fix bug : the change logic error of the CachedMNodeContainerIterator
(#12147)
---
.../mtree/impl/pbtree/mnode/container/CachedMNodeContainer.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/mnode/container/CachedMNodeContainer.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/mnode/container/CachedMNodeContainer.java
index 0e5f272f71b..7fe205993da 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/mnode/container/CachedMNodeContainer.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/schemaengine/schemaregion/mtree/impl/pbtree/mnode/container/CachedMNodeContainer.java
@@ -409,11 +409,11 @@ public class CachedMNodeContainer implements
ICachedMNodeContainer {
private boolean changeStatus() {
switch (status) {
case 0:
- iterator = getNewChildBuffer().getMNodeChildBufferIterator();
+ iterator = getChildCache().values().iterator();
status = 1;
return true;
case 1:
- iterator = getUpdatedChildBuffer().getMNodeChildBufferIterator();
+ iterator = getNewChildBuffer().getMNodeChildBufferIterator();
status = 2;
return true;
case 2: