crimson/osd: do not cluster_msgr.set_myaddrs() in background

we should do the initialization in foreground

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2019-09-19 16:26:56 +08:00
parent bb2bd5f42a
commit b82fd0320d

View File

@ -264,8 +264,11 @@ seastar::future<> OSD::start()
if (auto [addrs, changed] =
replace_unknown_addrs(cluster_msgr.get_myaddrs(),
public_msgr.get_myaddrs()); changed) {
cluster_msgr.set_myaddrs(addrs);
return cluster_msgr.set_myaddrs(addrs);
} else {
return seastar::now();
}
}).then([this] {
return heartbeat->start(public_msgr.get_myaddrs(),
cluster_msgr.get_myaddrs());
}).then([this] {