This is an automated email from the ASF dual-hosted git repository.

tanxinyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a5009914 RATIS-2158. Let the snapshot sender and receiver use a new 
digester each time (#1151)
8a5009914 is described below

commit 8a5009914e7783552cdcd3ca3995c5ec5648e625
Author: 133tosakarin <[email protected]>
AuthorDate: Thu Sep 19 15:02:32 2024 +0800

    RATIS-2158. Let the snapshot sender and receiver use a new digester each 
time (#1151)
---
 .../src/main/java/org/apache/ratis/server/storage/FileChunkReader.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/ratis-server/src/main/java/org/apache/ratis/server/storage/FileChunkReader.java
 
b/ratis-server/src/main/java/org/apache/ratis/server/storage/FileChunkReader.java
index 65bfc8b80..a12818443 100644
--- 
a/ratis-server/src/main/java/org/apache/ratis/server/storage/FileChunkReader.java
+++ 
b/ratis-server/src/main/java/org/apache/ratis/server/storage/FileChunkReader.java
@@ -56,7 +56,7 @@ public class FileChunkReader implements Closeable {
     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;

Reply via email to