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

Cleanup.

parent 5443c9a7
Branches
Tags
No related merge requests found
Pipeline #2446 passed
......@@ -1014,9 +1014,6 @@ class DbConnector(object):
(node.parentPath,))
result = cursor.fetchall()
parentLtreePath = result[0]["path"]
parentLtreeRelativePath = ""
if "." in parentLtreePath:
parentLtreeRelativePath = ".".join(parentLtreePath.strip(".").split('.')[1:])
except Exception:
if not conn.closed:
conn.rollback()
......@@ -1025,7 +1022,6 @@ class DbConnector(object):
try:
cursor.execute("""
INSERT INTO node(parent_path,
parent_relative_path,
fs_path,
name,
tstamp_wrapper_dir,
......@@ -1037,13 +1033,12 @@ class DbConnector(object):
creator_id,
content_length,
content_md5)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)
ON CONFLICT
DO NOTHING
RETURNING node_id;
""",
(parentLtreePath,
parentLtreeRelativePath,
node.fsPath,
node.name,
node.wrapperDir,
......
......@@ -87,8 +87,7 @@ class TransferService(object):
self.logger.info("""
##########################################################
########## VOSpace Transfer Service is RUNNING! ##########
##########################################################
""")
##########################################################""")
#else:
# print("The VOSpace Transfer Service requires super user privileges.")
# sys.exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment