summaryrefslogtreecommitdiffstats
path: root/src/crimson
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-09-19 10:26:56 +0200
committerKefu Chai <kchai@redhat.com>2019-09-19 10:31:26 +0200
commitb82fd0320db96a1684a3a337839a45507ad11459 (patch)
tree8be567cb650e63eb5dbd61c83dc807bb8fa4187b /src/crimson
parentcrimson/net: avoid warning about signed comparison with enum classes (diff)
downloadceph-b82fd0320db96a1684a3a337839a45507ad11459.tar.xz
ceph-b82fd0320db96a1684a3a337839a45507ad11459.zip
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>
Diffstat (limited to 'src/crimson')
-rw-r--r--src/crimson/osd/osd.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc
index 39369463c9f..ca5ababac3d 100644
--- a/src/crimson/osd/osd.cc
+++ b/src/crimson/osd/osd.cc
@@ -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] {