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 2022/05/06 01:21:52 UTC

[GitHub] [iotdb] wangchao316 commented on a diff in pull request #5806: [IOTDB-3104] Add Consensus Module StateMachine Event API

wangchao316 commented on code in PR #5806:
URL: https://github.com/apache/iotdb/pull/5806#discussion_r866425380


##########
consensus/src/main/java/org/apache/iotdb/consensus/ratis/ApplicationStateMachineProxy.java:
##########
@@ -136,11 +141,15 @@ public long takeSnapshot() throws IOException {
     // require the application statemachine to take the latest snapshot
     String metadata = Utils.getMetadataFromTermIndex(lastApplied);
     File snapshotDir = snapshotStorage.getSnapshotDir(metadata);
+    snapshotDir.mkdir();

Review Comment:
   if snapshotDir is exist ,  will make dir?



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