]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: register monc as an AuthClient
authorKefu Chai <kchai@redhat.com>
Thu, 11 Apr 2019 08:41:40 +0000 (16:41 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 16 Apr 2019 14:14:11 +0000 (22:14 +0800)
so msgrs will be able to turn to monc when they try to authenticate
themselves.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/osd.cc

index edeac331faf5e4e353110b5824a0ef79f7c0462b..52335b018bff78cc2b6a339ad2489d70f67d04c4 100644 (file)
@@ -68,8 +68,9 @@ OSD::OSD(int id, uint32_t nonce,
 {
   osdmaps[0] = boost::make_local_shared<OSDMap>();
   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());
   }
 }