]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson: rename WaitForActiveBlocker::on_active
authorSamuel Just <sjust@redhat.com>
Mon, 25 Apr 2022 23:32:11 +0000 (16:32 -0700)
committerSamuel Just <sjust@redhat.com>
Fri, 6 May 2022 02:38:21 +0000 (02:38 +0000)
We need to unblock this in cases other than on_active.

Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/osd/pg.cc
src/crimson/osd/pg_activation_blocker.cc
src/crimson/osd/pg_activation_blocker.h

index 4b0bdc0c8a9316ce9e75f4158d4348dfb414b83f..5aded130e55711daae7230c09f19daaef1713d35 100644 (file)
@@ -259,7 +259,7 @@ void PG::on_activate(interval_set<snapid_t>)
 
 void PG::on_activate_complete()
 {
-  wait_for_active_blocker.on_active();
+  wait_for_active_blocker.unblock();
 
   if (peering_state.needs_recovery()) {
     logger().info("{}: requesting recovery",
index 6230f9033888e23b498dbfbdc5de2e3acc35a29a..48ffe3f84134d9ab9cafff2bf38bbbe53fafb7d2 100644 (file)
@@ -11,7 +11,7 @@ void PGActivationBlocker::dump_detail(Formatter *f) const
   f->dump_stream("pgid") << pg->get_pgid();
 }
 
-void PGActivationBlocker::on_active()
+void PGActivationBlocker::unblock()
 {
   p.set_value();
   p = {};
index 38b64203a89ffea62aaf13767cc6d263c07a7da9..fd07d9b41410b81aebd72e197444af4f972f5537 100644 (file)
@@ -26,7 +26,7 @@ public:
   static constexpr const char *type_name = "PGActivationBlocker";
 
   PGActivationBlocker(PG *pg) : pg(pg) {}
-  void on_active();
+  void unblock();
   seastar::future<> wait(PGActivationBlocker::BlockingEvent::TriggerI&&);
   seastar::future<> stop();
 };