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-19 12:52:53 -0700 |
commit | 08ca82aa418ef206367ed17ec8427cbd2f9601f9 (patch) | |
tree | 264b7e6b92bdd01b75de87705d5f41111a209e96 | |
parent | 79858a1db4d03d5e4d6a76070d6755e1b7812b0e (diff) | |
download | ceph-08ca82aa418ef206367ed17ec8427cbd2f9601f9.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( |