fix gc running too soon

This commit is contained in:
Martin Sekera 2020-09-01 21:02:33 +02:00
parent cd2458b830
commit aa96fa3cf5

6
btv
View file

@ -349,14 +349,14 @@ def do_create(args):
print("!!! no previous Rank 2 snapshot, please create one using btv stream") print("!!! no previous Rank 2 snapshot, please create one using btv stream")
snapshot.rank = 1 snapshot.rank = 1
## garbage collection
do_gc()
## save all snapshot metadata ## save all snapshot metadata
snapshot.dump() snapshot.dump()
print(">>> Snapshot created: rank %d %s" %(snapshot.rank, snapshot.name)) print(">>> Snapshot created: rank %d %s" %(snapshot.rank, snapshot.name))
## garbage collection
do_gc()
def do_list(args): def do_list(args):
""" """
Print a list of existing snapshots. Print a list of existing snapshots.