You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/10/14 07:02:42 UTC

[GitHub] [iotdb] HTHou commented on a change in pull request #4146: [To rel/0.12][IOTDB-1837] Fix tagIndex rebuild failure after upgrade mlog from mlog.txt to mlog.bin

HTHou commented on a change in pull request #4146:
URL: https://github.com/apache/iotdb/pull/4146#discussion_r728690837



##########
File path: server/src/main/java/org/apache/iotdb/db/metadata/logfile/MLogWriter.java
##########
@@ -227,13 +229,13 @@ public static void upgradeTxtToBin(
             break;
           }
           try {
-            mLogWriter.operation(cmd, isSnapshot);
+            mLogWriter.operation(cmd, isSnapshot, tagLogFile);
           } catch (MetadataException e) {
             logger.error("failed to upgrade cmd {}.", cmd, e);
           }
         }
-
         // rename .bin.tmp to .bin
+        mLogWriter.close();

Review comment:
       Do we need to close the mLogWriter here? It seems that the mLogWriter will close automatically.




-- 
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.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org