You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "fabriziofortino (via GitHub)" <gi...@apache.org> on 2023/03/31 13:30:56 UTC
[GitHub] [jackrabbit-oak] fabriziofortino commented on a diff in pull request #886: OAK-10171: datastore-copy cmd: add checksum validation
fabriziofortino commented on code in PR #886:
URL: https://github.com/apache/jackrabbit-oak/pull/886#discussion_r1154480274
##########
oak-run/src/main/java/org/apache/jackrabbit/oak/run/DataStoreCopyCommand.java:
##########
@@ -83,6 +84,7 @@ public void execute(String... args) throws Exception {
item.source += "?" + sasToken;
}
item.destination = getDestinationFromId(id);
+ item.checksum = id.replaceAll("-", "");
Review Comment:
@amit-jain to get the expected checksum, I just remove the `-` from the blob id. Is there some function I can reuse to safely get the checksum from a blob identifier?
--
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: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org