]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG,ReplicatedPG: expose PGBackend to PG
authorSamuel Just <sam.just@inktank.com>
Tue, 17 Sep 2013 17:33:49 +0000 (10:33 -0700)
committerSamuel Just <sam.just@inktank.com>
Fri, 4 Oct 2013 20:50:09 +0000 (13:50 -0700)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/PG.h
src/osd/ReplicatedPG.h

index 78377d03ad6cc321df54ebef3b899fc921951db2..275d30c7658486b03744d52b779a8767113ce194 100644 (file)
@@ -48,6 +48,7 @@
 #include "common/WorkQueue.h"
 #include "common/ceph_context.h"
 #include "include/str_list.h"
+#include "PGBackend.h"
 
 #include <list>
 #include <memory>
@@ -193,6 +194,8 @@ protected:
   CephContext *cct;
   OSDriver osdriver;
   SnapMapper snap_mapper;
+
+  virtual PGBackend *get_pgbackend() = 0;
 public:
   void update_snap_mapper_bits(uint32_t bits) {
     snap_mapper.update_bits(bits);
index bea793878d62b04d9e3ca5660c166bf0c7b7d74f..026c4df2a90681852b6e4cb3fe92e32db676a8f9 100644 (file)
@@ -124,6 +124,9 @@ public:
   typedef boost::shared_ptr<CopyOp> CopyOpRef;
 
   boost::scoped_ptr<PGBackend> pgbackend;
+  PGBackend *get_pgbackend() {
+    return pgbackend.get();
+  }
 
   /// Listener methods
   void on_local_recover_start(