summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Just <sam.just@inktank.com>2013-09-17 10:33:49 -0700
committerSamuel Just <sam.just@inktank.com>2013-10-04 13:50:09 -0700
commitff17e45fe27bf05e5f3f71ac697d44be9aad9d69 (patch)
treef88df8bebb9c652c3dd715ac71ef36de7b27ffed
parent9a10a801f05030ec9cf6db710eeea177fe3a0bd8 (diff)
downloadceph-ff17e45fe27bf05e5f3f71ac697d44be9aad9d69.tar.gz
PG,ReplicatedPG: expose PGBackend to PG
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r--src/osd/PG.h3
-rw-r--r--src/osd/ReplicatedPG.h3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/osd/PG.h b/src/osd/PG.h
index 78377d03ad6..275d30c7658 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 bea793878d6..026c4df2a90 100644
--- a/src/osd/ReplicatedPG.h
+++ b/src/osd/ReplicatedPG.h
@@ -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(