mirror of
https://github.com/ceph/s3-tests.git
synced 2024-11-23 23:30:38 +00:00
Merge pull request #432 from psathyan/fix_43
Fix versioning tests failures due multiple removal of object
This commit is contained in:
commit
6f1050c9cb
1 changed files with 3 additions and 2 deletions
|
@ -6854,8 +6854,9 @@ def _do_remove_versions(bucket, objname, remove_start_idx, idx_inc, head_rm_rati
|
|||
|
||||
for j in xrange(total):
|
||||
r += head_rm_ratio
|
||||
if r >= 1:
|
||||
r %= 1
|
||||
|
||||
# Head object can be removed only once.
|
||||
if r == 1:
|
||||
remove_obj_head(bucket, objname, k, c)
|
||||
else:
|
||||
remove_obj_version(bucket, k, c, idx)
|
||||
|
|
Loading…
Reference in a new issue