Skip to content

Commit

Permalink
HBASE-22890 Verify the file integrity in persistent IOEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoBQ committed Sep 14, 2019
1 parent f35d249 commit 824ecea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public byte[] calculateChecksum()
}
}
MessageDigest messageDigest = MessageDigest.getInstance(algorithmName);
messageDigest.update(sb.toString().getBytes());
messageDigest.update(Bytes.toBytes(sb.toString()));
return messageDigest.digest();
}

Expand Down

0 comments on commit 824ecea

Please sign in to comment.