Skip to content

Commit

Permalink
account: clean after bucket deletion
Browse files Browse the repository at this point in the history
When deleting a bucket, some entries were left in the account service.
They are now cleaned.

Jira: OBSTO-161
  • Loading branch information
fvennetier committed Dec 1, 2020
1 parent 8ff3ae4 commit 6c67cb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oio/account/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class AccountBackend(RedisConnection):
if bucket_name == container_name then
redis.call('ZREM', buckets_list_key, bucket_name);
redis.call('ZREM', '%(bucket_list_prefix)s', bucket_name);
-- Also delete the bucket
redis.call('DEL', bucket_key);
end;
return;
end;
Expand Down

0 comments on commit 6c67cb6

Please sign in to comment.