Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kraken: rgw: fix break inside of yield in RGWFetchAllMetaCR #14067

Merged
merged 1 commit into from Jul 7, 2017

Conversation

asheplyakov
Copy link

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 190bd38)
@tchaikov tchaikov added this to the kraken milestone Apr 14, 2017
@smithfarm smithfarm added the rgw label Apr 15, 2017
@smithfarm
Copy link
Contributor

Jenkins re-test this please

@smithfarm smithfarm requested a review from yehudasa July 6, 2017 06:43
@smithfarm
Copy link
Contributor

@yehudasa @mattbenjamin @oritwas @cbodley This PR passed an rgw suite at http://tracker.ceph.com/issues/19009#note-60 and, provided there are no objections, I'll merge it as soon as it gets a positive review from one of you.

@smithfarm smithfarm merged commit 6e1023a into ceph:kraken Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants