mirror of
https://github.com/ceph/ceph
synced 2025-02-21 01:47:25 +00:00
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:
parent
bb2bd5f42a
commit
b82fd0320d
@ -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] {
|
||||
|
Loading…
Reference in New Issue
Block a user