]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: ignore returned futures
authorKefu Chai <kchai@redhat.com>
Sun, 6 Oct 2019 09:19:05 +0000 (17:19 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 6 Oct 2019 09:20:28 +0000 (17:20 +0800)
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 <kchai@redhat.com>
src/crimson/osd/pg.cc

index 64e129cfd8e4dfb1a004f13efb6d0433b81143c3..8372eea45f330fe886f3a92003f4c623fcff489c 100644 (file)
@@ -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<LocalPeeringEvent>(
       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<LocalPeeringEvent>(
       this,
       shard_services,