Skip to content

Commit d6c5f05

Browse files
committed
crimson/osd: make sure OSD is constructing in the primary core
Signed-off-by: Yingxin Cheng <[email protected]>
1 parent 0c5a77f commit d6c5f05

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/crimson/osd/osd.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ OSD::OSD(int id, uint32_t nonce,
108108
log_client(cluster_msgr.get(), LogClient::NO_FLAGS),
109109
clog(log_client.create_channel())
110110
{
111+
ceph_assert(seastar::this_shard_id() == PRIMARY_CORE);
111112
for (auto msgr : {std::ref(cluster_msgr), std::ref(public_msgr),
112113
std::ref(hb_front_msgr), std::ref(hb_back_msgr)}) {
113114
msgr.get()->set_auth_server(monc.get());

0 commit comments

Comments
 (0)