From: Kefu Chai Date: Thu, 24 Jun 2021 06:16:07 +0000 (+0800) Subject: crimson/osd: use discard_result() in stop() X-Git-Tag: v17.1.0~1566^2~3 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=20e02b00458b112f588bec9a03fc36f8bd63e575;p=ceph-ci.git crimson/osd: use discard_result() in stop() we don't care about the result of shutdown() of messengers, when shutting down the daemon actually, and we don't handle the failures. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index 65cf8cc459d..74ca49ea451 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -507,9 +507,7 @@ seastar::future<> OSD::stop() }).then([this] { return when_all_succeed( public_msgr->shutdown(), - cluster_msgr->shutdown()); - }).then_unpack([] { - return seastar::now(); + cluster_msgr->shutdown()).discard_result(); }).handle_exception([](auto ep) { logger().error("error while stopping osd: {}", ep); });