]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix break inside of yield in RGWFetchAllMetaCR 11586/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 20 Oct 2016 19:01:01 +0000 (15:01 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 29 Nov 2016 20:55:27 +0000 (15:55 -0500)
commit190bd385a7be52867d65740c410884f5c8cbc21f
treeb26720c00ba5d62489f35cdfe3fb0a007b113bd2
parentbfa66be2b0e8f95cbd38699e3082db15b1156183
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>
src/rgw/rgw_sync.cc