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

fix: use right init_flags to finish CephContext #6549

Merged
merged 2 commits into from Nov 15, 2015
Merged

fix: use right init_flags to finish CephContext #6549

merged 2 commits into from Nov 15, 2015

Conversation

wycbox
Copy link

@wycbox wycbox commented Nov 12, 2015

The constructor of RadosClient will use CephContext,
and RadosClient.connect func will always use 0 as
init_flags to call common_init_finish.

So, save the init_flags to CephContex, will let
RadosClient.connect use right init_flags to finish
the cct.

Yunchuan Wen added 2 commits November 12, 2015 16:10
The constructor of RadosClient will use CephContext,
and RadosClient.connect func will *always* use 0 as
init_flags to call common_init_finish.

So, save the init_flags to CephContex, will let
RadosClient.connect use right init_flags to finish
the cct.

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
@jdurgin
Copy link
Member

jdurgin commented Nov 12, 2015

Nice catch! I think this explains some odd behavior we saw when trying to decouple the rbd cli from ceph internals more. lgtm!

@liewegas
Copy link
Member

@jdurgin this passed rados suite. safe to merge, or do you want to run it through rbd first?

jdurgin added a commit that referenced this pull request Nov 15, 2015
fix: use right init_flags to finish CephContext

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
@jdurgin jdurgin merged commit 6ad1013 into ceph:master Nov 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants