]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/PG: move C_PG_ActivateCommitted into header
authorSage Weil <sage@redhat.com>
Wed, 13 Sep 2017 22:12:33 +0000 (18:12 -0400)
committerSage Weil <sage@redhat.com>
Fri, 6 Oct 2017 18:08:17 +0000 (13:08 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc
src/osd/PG.h

index fb18d50c597210c52c1655bb556abdd58b4fee05..a56de2ff8635654bdde36f49bf0ee11cc554d451 100644 (file)
@@ -1507,17 +1507,6 @@ void PG::build_might_have_unfound()
   dout(15) << __func__ << ": built " << might_have_unfound << dendl;
 }
 
-struct C_PG_ActivateCommitted : public Context {
-  PGRef pg;
-  epoch_t epoch;
-  epoch_t activation_epoch;
-  C_PG_ActivateCommitted(PG *p, epoch_t e, epoch_t ae)
-    : pg(p), epoch(e), activation_epoch(ae) {}
-  void finish(int r) override {
-    pg->_activate_committed(epoch, activation_epoch);
-  }
-};
-
 void PG::activate(ObjectStore::Transaction& t,
                  epoch_t activation_epoch,
                  list<Context*>& tfin,
index 071a5ea02f71b03dc84be57dbf5f714bdb5f111e..c223f3850d2ab12bf9e0aa3e11a53eba95677f44 100644 (file)
@@ -1146,9 +1146,18 @@ protected:
     map<int,
       vector<pair<pg_notify_t, PastIntervals> > > *activator_map,
     RecoveryCtx *ctx);
-public:
+
+  struct C_PG_ActivateCommitted : public Context {
+    PGRef pg;
+    epoch_t epoch;
+    epoch_t activation_epoch;
+    C_PG_ActivateCommitted(PG *p, epoch_t e, epoch_t ae)
+      : pg(p), epoch(e), activation_epoch(ae) {}
+    void finish(int r) override {
+      pg->_activate_committed(epoch, activation_epoch);
+    }
+  };
   void _activate_committed(epoch_t epoch, epoch_t activation_epoch);
-protected:
   void all_activated_and_committed();
 
   void proc_primary_info(ObjectStore::Transaction &t, const pg_info_t &info);