]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix break inside of yield in RGWFetchAllMetaCR 14066/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:05:35 +0000 (14:05 +0400)
commit2e50fe1684f73ebe96969c341242b6f20c8470a0
treee5903cfbe3a2aedd85d1897808d9d7c88798c599
parentce2e9897c08775cfbe318f637d61e07eb5433df5
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