mirror of
https://github.com/ceph/ceph
synced 2025-01-29 14:34:40 +00:00
client: fix dispatcher ordering (broken fuse)
Objecter never saw any OSD maps because of 1e1ee480
and
the dispatchers being in the wrong order -- ignoring map
in Client was hiding it from Objecter.
Fixes: #9266
Signed-off-by: John Spray <john.spray@redhat.com>
This commit is contained in:
parent
038992b1da
commit
a257291a9d
@ -354,8 +354,8 @@ int Client::init()
|
||||
objecter->init();
|
||||
|
||||
// ok!
|
||||
messenger->add_dispatcher_head(objecter);
|
||||
messenger->add_dispatcher_head(this);
|
||||
messenger->add_dispatcher_tail(objecter);
|
||||
messenger->add_dispatcher_tail(this);
|
||||
|
||||
int r = monclient->init();
|
||||
if (r < 0) {
|
||||
@ -370,7 +370,6 @@ int Client::init()
|
||||
|
||||
monclient->set_want_keys(CEPH_ENTITY_TYPE_MDS | CEPH_ENTITY_TYPE_OSD);
|
||||
monclient->sub_want("mdsmap", 0, 0);
|
||||
monclient->sub_want("osdmap", 0, CEPH_SUBSCRIBE_ONETIME);
|
||||
monclient->renew_subs();
|
||||
|
||||
// logger
|
||||
|
Loading…
Reference in New Issue
Block a user