Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
346f6c00
Commit
346f6c00
authored
12 years ago
by
Sebastien Ponce
Browse files
Options
Downloads
Patches
Plain Diff
Log the type of request triggering a recall
parent
ef380823
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
castor/db/oracleStager.sql
+11
-8
11 additions, 8 deletions
castor/db/oracleStager.sql
with
11 additions
and
8 deletions
castor/db/oracleStager.sql
+
11
−
8
View file @
346f6c00
...
...
@@ -3269,6 +3269,7 @@ CREATE OR REPLACE FUNCTION createRecallCandidate(inSrId IN INTEGER) RETURN INTEG
varReqTime
NUMBER
;
varReqUUID
VARCHAR2
(
2048
);
varReqId
INTEGER
;
varReqType
VARCHAR2
(
2048
);
varIsBeingRecalled
INTEGER
;
varRc
INTEGER
:
=
0
;
BEGIN
...
...
@@ -3278,16 +3279,16 @@ BEGIN
FROM
SubRequest
WHERE
id
=
inSrId
;
SELECT
fileid
,
nsHost
,
fileClass
,
fileSize
INTO
varFileId
,
varNsHost
,
varFileClassId
,
varFileSize
FROM
CastorFile
WHERE
id
=
varCfId
;
SELECT
Request
.
reqId
,
Request
.
svcClass
,
Request
.
euid
,
Request
.
egid
,
Request
.
creationTime
INTO
varReqUUID
,
varSvcClassId
,
varEuid
,
varEgid
,
varReqTime
SELECT
Request
.
reqId
,
Request
.
svcClass
,
Request
.
euid
,
Request
.
egid
,
Request
.
creationTime
,
Request
.
reqtype
INTO
varReqUUID
,
varSvcClassId
,
varEuid
,
varEgid
,
varReqTime
,
varReqType
FROM
(
SELECT
/*+ INDEX(StageGetRequest PK_StageGetRequest_Id) */
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
FROM
StageGetRequest
UNION
ALL
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
,
'StageGetRequest'
as
reqtype
FROM
StageGetRequest
UNION
ALL
SELECT
/*+ INDEX(StagePrepareToGetRequest PK_StagePrepareToGetRequest_Id) */
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
FROM
StagePrepareToGetRequest
UNION
ALL
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
,
'StagePrepareToGetRequest'
as
reqtype
FROM
StagePrepareToGetRequest
UNION
ALL
SELECT
/*+ INDEX(StageUpdateRequest PK_StageUpdateRequest_Id) */
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
FROM
StageUpdateRequest
UNION
ALL
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
,
'StageUpdateRequest'
as
reqtype
FROM
StageUpdateRequest
UNION
ALL
SELECT
/*+ INDEX(StagePrepareToUpdateRequest PK_StagePrepareToUpdateRequest_Id) */
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
FROM
StagePrepareToUpdateRequest
)
Request
id
,
svcClass
,
euid
,
egid
,
reqId
,
creationTime
,
'StagePrepareToUpdateRequest'
as
reqtype
FROM
StagePrepareToUpdateRequest
)
Request
WHERE
Request
.
id
=
varReqId
;
-- get the RecallGroup
getRecallGroup
(
varEuid
,
varEgid
,
varRecallGroup
,
varRecallGroupName
);
...
...
@@ -3302,12 +3303,14 @@ BEGIN
-- createRecallCandidate: found already running recall
logToDLF
(
NULL
,
dlf
.
LVL_SYSTEM
,
dlf
.
RECALL_FOUND_ONGOING_RECALL
,
varFileId
,
varNsHost
,
'stagerd'
,
'FileName='
||
varFileName
||
' REQID='
||
varReqUUID
||
' SUBREQID='
||
varSubReqUUID
||
' RecallGroup='
||
varRecallGroupName
);
' SUBREQID='
||
varSubReqUUID
||
' RecallGroup='
||
varRecallGroupName
||
' RequestType='
||
varReqType
);
ELSE
varRc
:
=
createRecallJobs
(
varCfId
,
varFileId
,
varNsHost
,
varFileSize
,
varFileClassId
,
varRecallGroup
,
varSvcClassId
,
varEuid
,
varEgid
,
varReqTime
,
'FileName='
||
varFileName
||
' REQID='
||
varReqUUID
||
' SUBREQID='
||
varSubReqUUID
||
' RecallGroup='
||
varRecallGroupName
);
' SUBREQID='
||
varSubReqUUID
||
' RecallGroup='
||
varRecallGroupName
||
' RequestType='
||
varReqType
);
END
IF
;
-- update the state of the SubRequest
IF
varRc
=
0
THEN
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment