]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls/rgw: keep issuing bilog trim ops after reset 28430/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 5 Jun 2019 21:07:47 +0000 (17:07 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 6 Jun 2019 13:31:53 +0000 (09:31 -0400)
commita6ea8433fe9eb032180368bc3d36a4232dd6d08b
treec3a70f9ea9b4e15467ec9c505019104da1fc9563
parent93c056c09cf5a354f3647622bb2c35dd02e21cba
cls/rgw: keep issuing bilog trim ops after reset

The CLSRGWIssueBILogTrim class is intended to keep submitting
cls_log_trim operations on each bucket index shard until they return
-ENODATA to signal there's no more to trim.

However, if the while loop in CLSRGWConcurrentIO::operator() gets to the
end of the shard list and collects all of its completions,
wait_for_completions() will return false and exit the loop. This is
always the case when num_shards = 1.

Fixes: http://tracker.ceph.com/issues/40187
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/cls/rgw/cls_rgw_client.h