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): ...@@ -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:"Checksumming database %s indexes...", database_name)
(db_name, database, sets) = load_database_sets(
configuration, database_name)
if database is None:
retcode += 1
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'))"index for `%s' can be loaded and checksumed",
return retcode
# ----------------------------------------------------------
def view_outputs(configuration, dataset_name, excluded_outputs=None, uid=None, def view_outputs(configuration, dataset_name, excluded_outputs=None, uid=None,
db_root=None, docker=False): db_root=None, docker=False):
...@@ -714,8 +681,6 @@ def process(args): ...@@ -714,8 +681,6 @@ def process(args):
return list_index_files(configuration, db_names) return list_index_files(configuration, db_names)
elif args['--delete']: elif args['--delete']:
return delete_index_files(configuration, db_names) return delete_index_files(configuration, db_names)
elif args['--checksum']:
return checksum_index_files(configuration, db_names)
else: else:
return index_outputs(configuration, db_names, return index_outputs(configuration, db_names,
uid=uid, 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