From: Kefu Chai Date: Sun, 6 Oct 2019 09:19:05 +0000 (+0800) Subject: crimson/osd: ignore returned futures X-Git-Tag: v15.1.0~1315^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=44a11595d1d655ff7ce7e44a8886b76518129d0b;p=ceph.git crimson/osd: ignore returned futures the peering events are handled in the background, we need to make sure the these continuations won't outlive the PG before destroying it though. Signed-off-by: Kefu Chai --- diff --git a/src/crimson/osd/pg.cc b/src/crimson/osd/pg.cc index 64e129cfd8e4..8372eea45f33 100644 --- a/src/crimson/osd/pg.cc +++ b/src/crimson/osd/pg.cc @@ -139,7 +139,8 @@ bool PG::try_flush_or_schedule_async() { void PG::queue_check_readable(epoch_t last_peering_reset, ceph::timespan delay) { - seastar::sleep(delay).then([last_peering_reset, this] { + // handle the peering event in the background + std::ignore = seastar::sleep(delay).then([last_peering_reset, this] { shard_services.start_operation( this, shard_services, @@ -259,7 +260,8 @@ HeartbeatStampsRef PG::get_hb_stamps(int peer) void PG::schedule_renew_lease(epoch_t last_peering_reset, ceph::timespan delay) { - seastar::sleep(delay).then([last_peering_reset, this] { + // handle the peering event in the background + std::ignore = seastar::sleep(delay).then([last_peering_reset, this] { shard_services.start_operation( this, shard_services,