Commit 742a5a5d authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

Fixed checksum checking when recalling and checksum is stored in upper case

parent e053f98c
......@@ -506,12 +506,12 @@ BEGIN
IF varNSCsumtype IS NOT NULL THEN
-- is the checksum matching at the file level ?
IF inCksumName = 'adler32' AND varNSCsumtype = 'AD' AND
TRIM(TO_CHAR(inCksumValue, 'xxxxxxxx')) != TRIM(varNSCsumvalue) THEN
TRIM(TO_CHAR(inCksumValue, 'xxxxxxxx')) != TRIM(LOWER(varNSCsumvalue)) THEN
-- not matching ! log "checkRecallInNS : bad checksum detected, will retry if allowed"
logToDLF(inReqId, dlf.LVL_ERROR, dlf.RECALL_BAD_CHECKSUM, inFileId, inNsHost, 'tapegatewayd',
'mountTransactionId=' || TO_CHAR(inMountTransactionId) || ' TPVID=' || inVID ||
' fseq=' || TO_CHAR(inFseq) || ' copyNb=' || TO_CHAR(inCopyNb) || ' checksumType=' || inCksumName ||
' expectedChecksumValue=' || TRIM(varNSCsumvalue) ||
' expectedChecksumValue=' || TRIM(LOWER(varNSCsumvalue)) ||
' checksumValue=' || TRIM(TO_CHAR(inCksumValue, 'xxxxxxxx')) ||' '|| inLogContext);
retryOrFailRecall(inCfId, inVID, inReqId, inLogContext);
UPDATE DiskCopy
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment