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

jackietien pushed a commit to branch bw-rename
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/bw-rename by this push:
     new 1496caf0fa0 print rename list size
1496caf0fa0 is described below

commit 1496caf0fa0b6175fb1945dca1e4541330901727
Author: JackieTien97 <[email protected]>
AuthorDate: Mon Sep 25 13:47:07 2023 +0800

    print rename list size
---
 example/session/src/main/java/org/apache/iotdb/TsFileLoad.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/example/session/src/main/java/org/apache/iotdb/TsFileLoad.java 
b/example/session/src/main/java/org/apache/iotdb/TsFileLoad.java
index ec53a5c0396..ef4497ddeb1 100644
--- a/example/session/src/main/java/org/apache/iotdb/TsFileLoad.java
+++ b/example/session/src/main/java/org/apache/iotdb/TsFileLoad.java
@@ -74,9 +74,6 @@ public class TsFileLoad {
       }
     }
 
-    System.out.println(
-        "Total renamed tsfile number: " + tsfileList.size() + 
System.lineSeparator());
-
     for (String tsfileName : tsfileList) {
       File oldFile = new File(tsfileName);
       if (!oldFile.renameTo(new File(tsfileName.substring(0, 
tsfileName.length() - 7)))) {
@@ -105,6 +102,9 @@ public class TsFileLoad {
       }
     }
 
+    System.out.println(
+        "Total renamed tsfile number: " + tsfileList.size() + 
System.lineSeparator());
+
     CountDownLatch countDownLatch = new CountDownLatch(parallelism);
     List<String> failedTsFileList = new ArrayList<>();
     AtomicInteger index = new AtomicInteger(0);

Reply via email to