Skip to content

Commit ab239ad

Browse files
Matan-Bcyx1231stChunmei Liuaisakaki
committed
crimson/osd/main: Enable multicore cluster messenger
Taken from: f78e99c Co-authored-by: Yingxin Cheng <[email protected]> Co-authored-by: Chunmei Liu <[email protected]> Co-authored-by: Xinyu Huang <[email protected]> Signed-off-by: Matan Breizman <[email protected]>
1 parent 9bce68a commit ab239ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/crimson/osd/main.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,14 +186,14 @@ int main(int argc, const char* argv[])
186186
const auto nonce = crimson::osd::get_nonce();
187187
crimson::net::MessengerRef cluster_msgr, client_msgr;
188188
crimson::net::MessengerRef hb_front_msgr, hb_back_msgr;
189-
for (auto [msgr, name] : {make_pair(std::ref(client_msgr), "client"s)}) {
189+
for (auto [msgr, name] : {make_pair(std::ref(client_msgr), "client"s),
190+
make_pair(std::ref(cluster_msgr), "cluster"s)}) {
190191
msgr = crimson::net::Messenger::create(entity_name_t::OSD(whoami),
191192
name,
192193
nonce,
193194
false);
194195
}
195-
for (auto [msgr, name] : {make_pair(std::ref(cluster_msgr), "cluster"s),
196-
make_pair(std::ref(hb_front_msgr), "hb_front"s),
196+
for (auto [msgr, name] : {make_pair(std::ref(hb_front_msgr), "hb_front"s),
197197
make_pair(std::ref(hb_back_msgr), "hb_back"s)}) {
198198
msgr = crimson::net::Messenger::create(entity_name_t::OSD(whoami),
199199
name,

0 commit comments

Comments
 (0)