You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2022/11/24 13:01:29 UTC
[iotdb] branch master updated: remove duplicate code in the PlanNodeIterator (#8122)
This is an automated email from the ASF dual-hosted git repository.
xingtanzjr 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 94414ad041 remove duplicate code in the PlanNodeIterator (#8122)
94414ad041 is described below
commit 94414ad041328bfbdc6e6144fe4f6644207daa96
Author: Alan Choo <43...@users.noreply.github.com>
AuthorDate: Thu Nov 24 21:01:24 2022 +0800
remove duplicate code in the PlanNodeIterator (#8122)
---
server/src/main/java/org/apache/iotdb/db/wal/node/WALNode.java | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/server/src/main/java/org/apache/iotdb/db/wal/node/WALNode.java b/server/src/main/java/org/apache/iotdb/db/wal/node/WALNode.java
index feb618f4ff..95a15f6375 100644
--- a/server/src/main/java/org/apache/iotdb/db/wal/node/WALNode.java
+++ b/server/src/main/java/org/apache/iotdb/db/wal/node/WALNode.java
@@ -505,16 +505,6 @@ public class WALNode implements IWALNode {
}
}
- // find file contains search index
- while (WALFileUtils.parseStatusCode(filesToSearch[currentFileIndex].getName())
- == WALFileStatus.CONTAINS_NONE_SEARCH_INDEX) {
- currentFileIndex++;
- if (currentFileIndex >= filesToSearch.length - 1) {
- needUpdatingFilesToSearch = true;
- return false;
- }
- }
-
// find all nodes of current wal file
List<IConsensusRequest> tmpNodes = new ArrayList<>();
long targetIndex = nextSearchIndex;