From c648bbf12510ab5756f3d6b7107cc42ff1ac4447 Mon Sep 17 00:00:00 2001 From: Yingxin Cheng Date: Tue, 4 Jul 2023 10:18:41 +0800 Subject: [PATCH] crimson/osd: make sure OSD is constructing in the primary core Signed-off-by: Yingxin Cheng (cherry picked from commit d6c5f05933e279607576dc2d6968c67248528813) --- src/crimson/osd/osd.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index 342a8225dd9bc..fcc77548e50c0 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()); -- 2.39.5