From: Kefu Chai Date: Thu, 11 Apr 2019 08:41:40 +0000 (+0800) Subject: crimson/osd: register monc as an AuthClient X-Git-Tag: v15.1.0~2915^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f9f3ac91d3c5f5ea31560645e4e25683d6401475;p=ceph.git crimson/osd: register monc as an AuthClient so msgrs will be able to turn to monc when they try to authenticate themselves. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index edeac331faf5..52335b018bff 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -68,8 +68,9 @@ OSD::OSD(int id, uint32_t nonce, { osdmaps[0] = boost::make_local_shared(); for (auto msgr : {std::ref(cluster_msgr), std::ref(public_msgr), - std::ref(hb_front_msgr), std::ref(hb_back_msgr)}) { + std::ref(hb_front_msgr), std::ref(hb_back_msgr)}) { msgr.get().set_auth_server(monc.get()); + msgr.get().set_auth_client(monc.get()); } }