OneSizeFitsQuorum commented on code in PR #1142:
URL: https://github.com/apache/ratis/pull/1142#discussion_r1756021294
##########
ratis-server/src/main/java/org/apache/ratis/server/storage/SnapshotManager.java:
##########
@@ -88,7 +89,8 @@ private FileChannel open(FileChunkProto chunk, File
tmpSnapshotFile) throws IOEx
}
// create the temp snapshot file and put padding inside
out = FileUtils.newFileChannel(tmpSnapshotFile,
StandardOpenOption.WRITE, StandardOpenOption.CREATE);
- digester.get().reset();
+ digester = newMd5Digest();
+ digester.reset();
Review Comment:
We can move this reset to line182 ?
--
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]