Skip to content
Snippets Groups Projects
Commit 5f43e5a6 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Exclude entries in 'deleted_node' table having 'os_rel_path' = NULL due to...

Exclude entries in 'deleted_node' table having 'os_rel_path' = NULL due to deletion of a copied node (see DbConnector and FileCleaner classes).

Signed-off-by: default avatarCristiano Urban <cristiano.urban@inaf.it>
parent 21eaf4b5
No related branches found
No related tags found
No related merge requests found
Pipeline #19394 passed
...@@ -276,7 +276,8 @@ class DbConnector(object): ...@@ -276,7 +276,8 @@ class DbConnector(object):
SELECT base_path as os_base_path, '/' || fs_path AS os_rel_path, deleted_on, d.node_id SELECT base_path as os_base_path, '/' || fs_path AS os_rel_path, deleted_on, d.node_id
FROM deleted_node d FROM deleted_node d
JOIN location l ON d.location_id = l.location_id JOIN location l ON d.location_id = l.location_id
JOIN storage s ON s.storage_id = l.storage_src_id; JOIN storage s ON s.storage_id = l.storage_src_id
WHERE fs_path is NOT NULL;
""") """)
result = cursor.fetchall() result = cursor.fetchall()
cursor.close() cursor.close()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment