Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
02f1a429
Commit
02f1a429
authored
Aug 20, 2014
by
Giuseppe Lo Presti
Browse files
On abort, set the error message on the subrequest
parent
78fd018f
Changes
1
Hide whitespace changes
Inline
Side-by-side
castor/db/oracleStager.sql
View file @
02f1a429
...
...
@@ -657,7 +657,11 @@ BEGIN
OR
abortedSRstatus
=
dconst
.
SUBREQUEST_REPACK
OR
abortedSRstatus
=
dconst
.
SUBREQUEST_READYFORSCHED
THEN
-- standard case, we only have to fail the subrequest
UPDATE
SubRequest
SET
status
=
dconst
.
SUBREQUEST_FAILED
WHERE
id
=
sr
.
srId
;
UPDATE
SubRequest
SET
status
=
dconst
.
SUBREQUEST_FAILED
,
errorCode
=
1725
,
errorMessage
=
'Aborted by another user request'
WHERE
id
=
sr
.
srId
;
INSERT
INTO
ProcessBulkRequestHelper
(
fileId
,
nsHost
,
errorCode
,
errorMessage
)
VALUES
(
sr
.
fileId
,
sr
.
nsHost
,
0
,
''
);
WHEN
abortedSRstatus
=
dconst
.
SUBREQUEST_WAITTAPERECALL
THEN
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment