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/09/16 10:11:09 UTC

[iotdb] 01/01: remove Long.MIN_VALUE

This is an automated email from the ASF dual-hosted git repository.

xingtanzjr pushed a commit to branch fit_test_ml
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit c6b18cfb13ca3527b82d39b0ba8c67baa82bcb6f
Author: Jinrui.Zhang <xi...@gmail.com>
AuthorDate: Fri Sep 16 18:10:53 2022 +0800

    remove Long.MIN_VALUE
---
 server/src/main/java/org/apache/iotdb/db/wal/node/WALNode.java | 1 -
 1 file changed, 1 deletion(-)

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 174ede96f2..585dc9ea5c 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
@@ -295,7 +295,6 @@ public class WALNode implements IWALNode {
       // judge DEFAULT_SAFELY_DELETED_SEARCH_INDEX for standalone, Long.MIN_VALUE for multi-leader
       int endFileIndex =
           safelyDeletedSearchIndex == DEFAULT_SAFELY_DELETED_SEARCH_INDEX
-                  || safelyDeletedSearchIndex == Long.MIN_VALUE
               ? filesToDelete.length
               : WALFileUtils.binarySearchFileBySearchIndex(
                   filesToDelete, safelyDeletedSearchIndex + 1);