samperson1997 commented on a change in pull request #1384: URL: https://github.com/apache/incubator-iotdb/pull/1384#discussion_r442063447
########## File path: server/src/main/java/org/apache/iotdb/db/metadata/MManager.java ########## @@ -199,11 +203,16 @@ public synchronized void init() { private void initFromLog(File logFile) throws IOException { // init the metadata from the operation log - mtree = new MTree(); + mtree = MTree.deserializeFrom(mtreeSnapshotPath); if (logFile.exists()) { try (FileReader fr = new FileReader(logFile); BufferedReader br = new BufferedReader(fr)) { String cmd; + int idx = 0; + while (idx <= mtree.getSnapshotLineNumber()) { Review comment: Fixed ---------------------------------------------------------------- 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: us...@infra.apache.org