]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: make sure OSD is constructing in the primary core
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 4 Jul 2023 02:18:41 +0000 (10:18 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 4 Jul 2023 02:18:41 +0000 (10:18 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/osd/osd.cc

index 342a8225dd9bc06c59ecfa7efbddd936b905f67b..fcc77548e50c067a8360e182f262fc695836f099 100644 (file)
@@ -108,6 +108,7 @@ OSD::OSD(int id, uint32_t nonce,
     log_client(cluster_msgr.get(), LogClient::NO_FLAGS),
     clog(log_client.create_channel())
 {
+  ceph_assert(seastar::this_shard_id() == PRIMARY_CORE);
   for (auto msgr : {std::ref(cluster_msgr), std::ref(public_msgr),
                     std::ref(hb_front_msgr), std::ref(hb_back_msgr)}) {
     msgr.get()->set_auth_server(monc.get());