diff options
author | Samuel Just <sam.just@inktank.com> | 2013-09-17 10:33:49 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-09-23 22:55:56 -0700 |
commit | 83c52f8bc48afb84ca117c0c1c728532d22a770d (patch) | |
tree | cfabbde51109161fbc20f1b977ca2e7b41960f98 | |
parent | fb50bc849b6c2c252d15966102888caf31625ac6 (diff) | |
download | ceph-83c52f8bc48afb84ca117c0c1c728532d22a770d.tar.gz |
PG,ReplicatedPG: expose PGBackend to PG
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/osd/PG.h | 3 | ||||
-rw-r--r-- | src/osd/ReplicatedPG.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/osd/PG.h b/src/osd/PG.h index a11b2076c33..71c0c3441e8 100644 --- a/src/osd/PG.h +++ b/src/osd/PG.h @@ -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); diff --git a/src/osd/ReplicatedPG.h b/src/osd/ReplicatedPG.h index 5105207694b..808a18e2396 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -126,6 +126,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( |