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

rgw: fix for passing temporary in InitBucketSyncStatus #11594

Merged
merged 1 commit into from Oct 25, 2016

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Oct 21, 2016

RGWInitBucketShardSyncStatusCoroutine was recently changed to store its sync_status by reference. This works fine when called via RGWRunBucketShardSyncCoroutine, but not in RGWBucketSyncStatusManager::init_sync_status() which is used by radosgw-admin. RGWBucketSyncStatusManager::init_sync_status() returns a coroutine with a reference to a temporary local variable, leading to a crash

Fixes: http://tracker.ceph.com/issues/17661

@yehudasa
Copy link
Member

@cbodley lgtm.. did it go through testing?

@cbodley
Copy link
Contributor Author

cbodley commented Oct 21, 2016

@yehudasa just validated with manual testing - we don't have any automated tests that cover radosgw-admin bucket sync init, which is why I didn't catch it before the initial merge

@yehudasa yehudasa merged commit 6b966be into ceph:master Oct 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants