Fix deadlocks with tags and garbage collection.

This commit is contained in:
Jake Moshenko 2015-03-20 23:21:20 -04:00
parent 2baa7fa14c
commit 201943ed1c
4 changed files with 72 additions and 75 deletions

View file

@ -103,7 +103,7 @@ def __create_subtree(repo, structure, creator_username, parent):
new_image.docker_image_id)
if tag_name[0] == '#':
tag.lifetime_end_ts = int(time.time()) - 1
tag.lifetime_end_ts = get_epoch_timestamp() - 1
tag.save()
for subtree in subtrees: