Commit 2a7c257f authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[databases] Removed checksum command for index

It's not used anymore as the underlying paradigm as changed.
parent 47bcde4c
......@@ -502,39 +502,6 @@ def delete_index_files(configuration, names):
# ----------------------------------------------------------
def checksum_index_files(configuration, names):
names = common.make_up_local_list(configuration.path, 'database', names)
retcode = 0
for database_name in names:
logger.info("Checksumming database %s indexes...", database_name)
(db_name, database, sets) = load_database_sets(
configuration, database_name)
if database is None:
retcode += 1
continue
for protocol_name, set_name, db_set in sets:
for output_name in db_set['outputs'].keys():
index_hash = database.hash_output(
protocol_name, set_name, output_name)
index_filename = os.path.join(configuration.cache,
toPath(index_hash, '.index'))
assert load_data_index(
configuration.cache, toPath(index_hash, '.index'))
logger.info("index for `%s' can be loaded and checksumed",
index_filename)
return retcode
# ----------------------------------------------------------
def view_outputs(configuration, dataset_name, excluded_outputs=None, uid=None,
db_root=None, docker=False):
......@@ -714,8 +681,6 @@ def process(args):
return list_index_files(configuration, db_names)
elif args['--delete']:
return delete_index_files(configuration, db_names)
elif args['--checksum']:
return checksum_index_files(configuration, db_names)
else:
return index_outputs(configuration, db_names,
uid=uid,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment