From 20e02b00458b112f588bec9a03fc36f8bd63e575 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 24 Jun 2021 14:16:07 +0800 Subject: [PATCH] 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 --- src/crimson/osd/osd.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index 65cf8cc459d96..74ca49ea45132 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); }); -- 2.39.5