This is an automated email from the ASF dual-hosted git repository. shuwenwei pushed a commit to branch fixBug0902 in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 5f7cbfe9b8f442613bb1bdeb87bd582c0e6aac6c Author: shuwenwei <[email protected]> AuthorDate: Tue Sep 2 16:24:54 2025 +0800 fix bug --- .../src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java index 4309d1e68f2..9f5e07d98a1 100644 --- a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java +++ b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java @@ -951,7 +951,7 @@ public abstract class TVList implements WALEntryValue { // When traversing in desc order, the index needs to be converted public int getScanOrderIndex(int rowIndex) { - return scanOrder.isAscending() ? rowIndex : rowCount - 1 - rowIndex; + return scanOrder.isAscending() ? rowIndex : rows - 1 - rowIndex; } @Override
