From: Samuel Just Date: Tue, 17 Sep 2013 17:33:49 +0000 (-0700) Subject: PG,ReplicatedPG: expose PGBackend to PG X-Git-Tag: v0.71~24^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ff17e45fe27bf05e5f3f71ac697d44be9aad9d69;p=ceph.git PG,ReplicatedPG: expose PGBackend to PG Signed-off-by: Samuel Just --- diff --git a/src/osd/PG.h b/src/osd/PG.h index 78377d03ad6c..275d30c76584 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 #include @@ -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 bea793878d62..026c4df2a906 100644 --- a/src/osd/ReplicatedPG.h +++ b/src/osd/ReplicatedPG.h @@ -124,6 +124,9 @@ public: typedef boost::shared_ptr CopyOpRef; boost::scoped_ptr pgbackend; + PGBackend *get_pgbackend() { + return pgbackend.get(); + } /// Listener methods void on_local_recover_start(