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
a2a55bff
Commit
a2a55bff
authored
Mar 05, 2021
by
Michael Davis
Browse files
[migration] Removes IS_DISABLED, IS_READ_ONLY, IS_ARCHIVED, IS_EXPORTED from migration scripts
parent
860a4ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
migration/oracle_catalogue_castor_migration.sql
View file @
a2a55bff
...
...
@@ -127,7 +127,7 @@ BEGIN
AND
TS
.
poolname
=
inTapePool
)
LOOP
INSERT
INTO
Tape
(
vid
,
media_type_id
,
vendor
,
logical_library_id
,
tape_pool_id
,
encryption_key_name
,
data_in_bytes
,
last_fseq
,
is_
disabled
,
is_full
,
is_read_only
,
is_archived
,
is_exported
,
is_from_castor
,
is_
full
,
is_from_castor
,
label_drive
,
label_time
,
last_read_drive
,
last_read_time
,
read_mount_count
,
last_write_drive
,
last_write_time
,
write_mount_count
,
user_comment
,
creation_log_user_name
,
creation_log_host_name
,
creation_log_time
,
...
...
@@ -148,11 +148,9 @@ BEGIN
NULL
,
-- empty encryption key name
0
,
-- total data: will be filled by populateCTAFilesFromCASTOR()
T
.
nbfiles
,
decode
(
BITAND
(
T
.
status
,
1
),
1
,
'1'
,
'0'
),
-- DISABLED flag
--
decode(BITAND(T.status, 1), 1, '1', '0'), -- DISABLED flag
decode
(
BITAND
(
T
.
status
,
8
),
8
,
'1'
,
'0'
),
-- FULL flag
decode
(
BITAND
(
T
.
status
,
16
),
16
,
'1'
,
'0'
),
-- RDONLY flag
'0'
,
-- ARCHIVED flag
'0'
,
-- EXPORTED flag
-- decode(BITAND(T.status, 16), 16, '1', '0'), -- RDONLY flag
'1'
,
-- is_from_castor flag
'CASTOR'
,
0
,
-- label drive and time (unknown)
T
.
rhost
,
T
.
rtime
,
T
.
rcount
,
-- last read drive/time and count
...
...
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