]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd/pg: implement schedule_renew_lease()
authorKefu Chai <kchai@redhat.com>
Sun, 29 Sep 2019 17:19:07 +0000 (01:19 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 30 Sep 2019 08:25:02 +0000 (16:25 +0800)
see also d883db70282c406edaceb72a90ecddccd97a0161

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/pg.cc

index 6de58af4e445c3e61fb4ec602fc12b02c189fe56..60f9814954757713c8f6ea274987242536f23b8d 100644 (file)
@@ -256,9 +256,18 @@ HeartbeatStampsRef PG::get_hb_stamps(int peer)
   return shard_services.get_hb_stamps(peer);
 }
 
-void PG::schedule_renew_lease(epoch_t plr, ceph::timespan delay)
+void PG::schedule_renew_lease(epoch_t last_peering_reset, ceph::timespan delay)
 {
-#warning implement me
+  seastar::sleep(delay).then([last_peering_reset, this] {
+    shard_services.start_operation<LocalPeeringEvent>(
+      this,
+      shard_services,
+      pg_whoami,
+      pgid,
+      last_peering_reset,
+      last_peering_reset,
+      RenewLease{});
+    });
 }