Commit 65408266 authored by Giuseppe Lo Presti's avatar Giuseppe Lo Presti
Browse files

Fixed gcType on failed disk-to-disk copies

parent e3305243
......@@ -443,7 +443,7 @@ BEGIN
INSERT INTO DiskCopy (path, gcWeight, creationTime, lastAccessTime, diskCopySize, nbCopyAccesses,
owneruid, ownergid, id, gcType, fileSystem, castorFile, status, importance)
VALUES (varDestPath, varDcGcWeight, getTime(), getTime(), varFileSize, 0, varUid, varGid, varDestDcId,
CASE varNewDcStatus WHEN dconst.DISKCOPY_INVALID THEN dconst.GCTYPE_OVERWRITTEN ELSE NULL END,
CASE varNewDcStatus WHEN dconst.DISKCOPY_INVALID THEN dconst.GCTYPE_FAILEDD2D ELSE NULL END,
varDestFsId, varCfId, varNewDcStatus, varDCImportance);
-- Wake up waiting subrequests
UPDATE SubRequest
......
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