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
438740c6
Commit
438740c6
authored
Sep 20, 2019
by
Giuseppe Lo Presti
Browse files
More verbose log message in case of errors
parent
65e003a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
migration/oracle_catalogue_castor_migration.sql
View file @
438740c6
...
@@ -208,7 +208,12 @@ BEGIN
...
@@ -208,7 +208,12 @@ BEGIN
COMMIT
;
COMMIT
;
SELECT
count
(
*
)
INTO
nbMissingImports
FROM
Err
$
_Tape_File
;
SELECT
count
(
*
)
INTO
nbMissingImports
FROM
Err
$
_Tape_File
;
IF
nbMissingImports
=
nbPreviousErrors
THEN
IF
nbMissingImports
=
nbPreviousErrors
THEN
CNS_ctaLog
(
inTapePool
,
'Tape files import completed'
);
IF
nbPreviousErrors
>
0
THEN
CNS_ctaLog
(
inTapePool
,
'Tape files import completed. Still '
||
nbPreviousErrors
||
' cases from previous imports in the Err$_Tape_File table'
);
ELSE
CNS_ctaLog
(
inTapePool
,
'Tape files import completed'
);
END
IF
;
ELSE
ELSE
CNS_ctaLog
(
inTapePool
,
'Tape files import NOT fully completed, '
||
(
nbMissingImports
-
nbPreviousErrors
)
CNS_ctaLog
(
inTapePool
,
'Tape files import NOT fully completed, '
||
(
nbMissingImports
-
nbPreviousErrors
)
||
' files are missing: please check the Err$_Tape_File table'
);
||
' files are missing: please check the Err$_Tape_File table'
);
...
...
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