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
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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
                FROM deleted_node d
                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()
            cursor.close()