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,13 +349,13 @@ def do_create(args):
print("!!! no previous Rank 2 snapshot, please create one using btv stream")
snapshot.rank = 1
## garbage collection
do_gc()
## save all snapshot metadata
snapshot.dump()
print(">>> Snapshot created: rank %d %s" %(snapshot.rank, snapshot.name))
## garbage collection
do_gc()
def do_list(args):
"""