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
65e003a1
Commit
65e003a1
authored
Sep 13, 2019
by
Giuseppe Lo Presti
Browse files
Fixes following scale tests
parent
7a540cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
migration/castor/castorns_ctamigration_schema.sql
View file @
65e003a1
...
...
@@ -131,7 +131,7 @@ BEGIN
raise_application_error
(
-
20000
,
'No valid files found on this tape pool, aborting the import'
);
END
IF
;
ctaLog
(
inPoolName
,
'Intermediate table for files prepared, '
||
nbFiles
||
' files to be imported. ETA: '
||
prettyTime
(
nbFiles
/
70
00
/
60
));
prettyTime
(
nbFiles
/
34
00
/
60
));
EXECUTE
IMMEDIATE
'TRUNCATE TABLE CTADeltaDirsHelper'
;
-- estimate the last update time of the Dirs_Full_Path snapshot. To be noted that
-- in case the directory identified by max(fileid) got updated itself, the estimate
...
...
@@ -154,12 +154,12 @@ BEGIN
SELECT
path
INTO
varPath
FROM
Dirs_Full_Path
WHERE
fileid
=
dirIds
(
i
);
DELETE
FROM
Dirs_Full_Path
WHERE
path
LIKE
varPath
||
'%'
;
COMMIT
;
EXCEPTION
WHEN
NO_DATA_FOUND
THEN
-- this was a newly created path, will be inserted later
NULL
;
END
;
END
LOOP
;
COMMIT
;
END
IF
;
-- do the selection again, this time with the anti-join to exactly identify
-- which directories are missing for this export
...
...
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