Commit f1a6d684 authored by Sebastien Ponce's avatar Sebastien Ponce
Browse files

More complete fix for bug #103190: Constraint violation errors thrown by the GC

parent bf0e6c51
......@@ -480,9 +480,9 @@ BEGIN
-- file from the nameserver. For safety, we thus keep it
NULL;
WHEN CONSTRAINT_VIOLATED THEN
IF sqlerrm LIKE '%constraint (CASTOR_STAGER.FK_DISK2DISKCOPYJOB_CASTORFILE) violated%' THEN
-- Ignore the deletion, probably some draining/rebalancing activity created a Disk2DiskCopyJob entity
-- while we were attempting to drop the CastorFile
IF sqlerrm LIKE '%constraint (CASTOR_STAGER.FK_%_CASTORFILE) violated%' THEN
-- Ignore the deletion, probably some draining/rebalancing/recall activity created
-- a new Disk2DiskCopyJob/RecallJob entity while we were attempting to drop the CastorFile
NULL;
ELSE
-- Any other constraint violation is an error
......
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