[ 
https://issues.apache.org/jira/browse/OAK-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16355203#comment-16355203
 ] 

Amit Jain commented on OAK-5272:
--------------------------------

[~tmueller] Thanks!

bq. what about the case where one blob has a SHA-1 content hash, and the other 
has a SHA-256 content hash?
Yeah I missed that in which case the method you added makes sense. We'll need 
to add the method to the concrete instances (BlobStoreBlob/SegmentBlob) or 
alternately add it only to the AbstractBlob and then expose the required info 
from the concrete instances (either the BlobStore or other info directly).

Let me work in it including tests and then I can put out a patch.

> Expose BlobStore API to provide information whether blob id is content hashed
> -----------------------------------------------------------------------------
>
>                 Key: OAK-5272
>                 URL: https://issues.apache.org/jira/browse/OAK-5272
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: blob
>            Reporter: Amit Jain
>            Priority: Major
>
> As per discussion in OAK-5253 it's better to have some information from the 
> BlobStore(s) whether the blob id can be solely relied upon for comparison.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to