Skip to content
Snippets Groups Projects
Commit 364368e6 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Fixed archiving of failed Get requests

parent 4991c797
Branches
Tags
No related merge requests found
......@@ -243,10 +243,11 @@ BEGIN
WHERE id = varCfId;
IF inoutErrorCode = 0 THEN
-- no error, archive and log
archiveSubReq(varSrId, 8); -- FINISHED
archiveSubReq(varSrId, dconst.SUBREQUEST_FINISHED);
logToDLF(NULL, dlf.LVL_SYSTEM, dlf.STAGER_GETENDED, varFileId, varNsHost, 'stagerd', 'SUBREQID='|| inTransferId);
ELSE
-- request failed, log
-- request failed, fail and log
archiveSubReq(varSrId, dconst.SUBREQUEST_FAILED_FINISHED);
logToDLF(NULL, dlf.LVL_NOTICE, dlf.STAGER_GETENDED, varFileId, varNsHost, 'stagerd',
'SUBREQID='|| inTransferId ||' errorMessage="'|| errmsg ||'" errorCode='|| inoutErrorCode);
-- and return 0, the error has been handled
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment