]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix break inside of yield in RGWFetchAllMetaCR 14067/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 20 Oct 2016 19:01:01 +0000 (15:01 -0400)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Tue, 21 Mar 2017 10:50:19 +0000 (14:50 +0400)
commit076e4b7991e3bd734a41604fa7cb00c7b03d7749
tree2f0d94d787d80eb6594a80b379588f3ce054e586
parent98a87fa97c9b23e21a05130c72730f5034691310
rgw: fix break inside of yield in RGWFetchAllMetaCR

the yield macro is implemented with for/switch, so the breaks in
RGWFetchAllMetaCR weren't being applied to the for loop as expected -
so any of these breaks send RGWFetchAllMetaCR into an infinite loop

removed the yield {} block, so that breaks will apply to the for loop as
intended, then added a single yield; statement to allow the
entries_index consumer to run one per iteration

Fixes: http://tracker.ceph.com/issues/17655
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 190bd385a7be52867d65740c410884f5c8cbc21f)
src/rgw/rgw_sync.cc