Skip to content

Commit

Permalink
RATIS-2158. Let the snapshot sender and receiver use a new digester e…
Browse files Browse the repository at this point in the history
…ach time (#1151)
  • Loading branch information
133tosakarin authored Sep 19, 2024
1 parent 6451f9b commit 8a50099
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public FileChunkReader(FileInfo info, Path relativePath) throws IOException {
this.relativePath = relativePath;
final File f = info.getPath().toFile();
if (info.getFileDigest() == null) {
digester = MD5Hash.getDigester();
digester = MD5Hash.newDigester();
this.in = new DigestInputStream(FileUtils.newInputStream(f), digester);
} else {
digester = null;
Expand Down

0 comments on commit 8a50099

Please sign in to comment.