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

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


The following commit(s) were added to refs/heads/tiered_storage by this push:
     new 5a1e19a944f fix wrong tsfile name when recovering
5a1e19a944f is described below

commit 5a1e19a944f93aced70004cb2b9b441987131afe
Author: HeimingZ <[email protected]>
AuthorDate: Thu May 25 11:23:49 2023 +0800

    fix wrong tsfile name when recovering
---
 .../main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java 
b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
index e302ea4e2f7..765d3c6eb62 100644
--- 
a/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
+++ 
b/server/src/main/java/org/apache/iotdb/db/engine/storagegroup/DataRegion.java
@@ -724,7 +724,7 @@ public class DataRegion implements IDataRegionForQuery {
 
             for (File f : resourceFilesInThisFolder) {
               String tsFileFileName =
-                  f.getCanonicalPath()
+                  f.getName()
                       .substring(0, f.getCanonicalPath().length() - 
RESOURCE_SUFFIX.length());
               if (tsFileName2File.containsKey(tsFileFileName)) {
                 // check migration: tsfile already added, but this resource 
file doesn't correspond

Reply via email to