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
71e47f78
Commit
71e47f78
authored
12 years ago
by
Sebastien Ponce
Browse files
Options
Downloads
Patches
Plain Diff
a couple of fixes to the upgrade script
parent
e661567d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
upgrades/stager_2.1.12-4_to_2.1.13-0.sql
+14
-7
14 additions, 7 deletions
upgrades/stager_2.1.12-4_to_2.1.13-0.sql
with
14 additions
and
7 deletions
upgrades/stager_2.1.12-4_to_2.1.13-0.sql
+
14
−
7
View file @
71e47f78
...
...
@@ -99,10 +99,11 @@ CREATE TABLE DLFLogs
params
VARCHAR2
(
2048
));
DROP
PROCEDURE
dumpCleanupLogs
;
DROP
TABLE
TapeGatewayRequest
;
DROP
TABLE
Tape
;
DROP
TABLE
Segment
;
DROP
TABLE
RecallJob
;
DROP
TABLE
PriorityMap
;
DROP
SEQUENCE
TG_FILETRID_SEQ
;
...
...
@@ -307,6 +308,13 @@ DROP PROCEDURE tg_getRepackVIDAndFileInfo;
DROP
PROCEDURE
tg_getFailedMigrations
;
DROP
PROCEDURE
tg_getFileToMigrate
;
DROP
PROCEDURE
tg_getFileToRecall
;
DROP
PROCEDURE
anySegmentsForTape
;
DROP
PROCEDURE
deletePriority
;
DROP
PROCEDURE
enterPriority
;
DROP
PROCEDURE
selectPriority
;
DROP
PROCEDURE
failedSegments
;
DROP
PROCEDURE
restartStuckRecalls
;
DROP
PROCEDURE
segmentsForTape
;
DROP
FUNCTION
selectTapeForRecall
;
DROP
FUNCTION
triggerRepackRecall
;
...
...
@@ -314,15 +322,15 @@ DROP FUNCTION triggerRepackRecall;
/* Resurrect all subrequest that were waiting so that we trigger new recalls after we have */
/* dropped all recall related tables */
/* also cleanup all diskcopies in WAITTAPERECALL as they should no exist anymore */
DELETE
FROM
DiskCopy
WHERE
status
=
dconst
.
DISKCOPY_WAITTAPERECALL
;
UPDATE
SubRequest
SET
status
=
dconst
.
SUBREQUEST_RESTART
WHERE
status
IN
(
dconst
.
SUBREQUEST_WAITTAPERECALL
,
dconst
.
SUBREQUEST_WAITSUBREQ
);
DELETE
FROM
DiskCopy
WHERE
status
=
2
;
UPDATE
SubRequest
SET
status
=
1
WHERE
status
IN
(
4
,
5
);
COMMIT
;
/* Resurrect all selected migration jobs so that they get relinked to new mounts */
UPDATE
MigrationJob
SET
status
=
tconst
.
MIGRATIONJOB_PENDING
,
mountTransactionId
=
NULL
,
nbRetries
=
0
WHERE
status
=
tconst
.
MIGRATIONJOB_SELECTED
;
SET
status
=
0
,
mountTransactionId
=
NULL
,
nbRetries
=
0
WHERE
status
=
1
;
COMMIT
;
-- XXXXX Revalidation of all the PL/SQL code
...
...
@@ -338,7 +346,6 @@ COMMIT;
@
oracleQuery
.
sql
@
oracleRH
.
sql
@
oracleStager
.
sql
@
oracleDiskTapeInterface
.
sql
@
oracleTapeGateway
.
sql
/* Recompile all invalid procedures, triggers and functions */
...
...
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