qiaojialin commented on a change in pull request #1480:
URL: https://github.com/apache/incubator-iotdb/pull/1480#discussion_r454325658



##########
File path: 
server/src/main/java/org/apache/iotdb/db/engine/storagegroup/StorageGroupProcessor.java
##########
@@ -574,16 +575,25 @@ else if (upgradeFolder.exists()) {
       }
     }
 
-    Map<String, List<TsFileResource>> vmTsFileResourceMap = new HashMap<>();
+    Map<String, List<List<TsFileResource>>> vmTsFileResourceMap = new 
HashMap<>();
     for (File f : vmFiles) {
       TsFileResource fileResource = new TsFileResource(f);
       fileResource.setClosed(false);
       String tsfilePrefix = f.getPath()
-          .substring(0, f.getPath().lastIndexOf(FILE_NAME_SEPARATOR));
-      vmTsFileResourceMap.computeIfAbsent(tsfilePrefix, k -> new 
ArrayList<>()).add(fileResource);
+          .substring(0, f.getPath().lastIndexOf(TSFILE_SUFFIX)) + 
TSFILE_SUFFIX;
+      String vmVersionStr = f.getPath()

Review comment:
       ```suggestion
         String vmLevel = f.getPath()
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to