OneSizeFitsQuorum commented on code in PR #892:
URL: https://github.com/apache/ratis/pull/892#discussion_r1255166353


##########
ratis-server/src/main/java/org/apache/ratis/server/storage/RaftStorageImpl.java:
##########
@@ -112,8 +113,8 @@ private StorageState analyzeAndRecoverStorage(boolean 
toLock) throws IOException
       if (!f.exists()) {
         throw new FileNotFoundException("Metadata file " + f + " does not 
exists.");
       }
-      metaFile = new RaftStorageMetadataFileImpl(f);
-      final RaftStorageMetadata metadata = metaFile.getMetadata();
+      metaFile.set(new RaftStorageMetadataFileImpl(f));
+      final RaftStorageMetadata metadata = metaFile.get().getMetadata();

Review Comment:
   OK



-- 
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: [email protected]

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

Reply via email to