From: Yingxin Cheng Date: Tue, 4 Jul 2023 02:18:41 +0000 (+0800) Subject: crimson/osd: make sure OSD is constructing in the primary core X-Git-Tag: v19.0.0~912^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d6c5f05933e279607576dc2d6968c67248528813;p=ceph.git crimson/osd: make sure OSD is constructing in the primary core Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index 342a8225dd9..fcc77548e50 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -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());