diff options
author | Samuel Just <sam.just@inktank.com> | 2013-08-26 19:54:37 -0700 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-09-19 12:50:44 -0700 |
commit | 113248ca4faf910ce3eb57d05b413d772c5fddbb (patch) | |
tree | dd86e526b057d7d5d2b25603a5f353ea4342bff4 | |
parent | 8b820cd0f9e205f951fc6b9f518ddf92d54835b2 (diff) | |
download | ceph-113248ca4faf910ce3eb57d05b413d772c5fddbb.tar.gz |
osd/: allow dout for ReplicatedBackend methods to work in ReplicatedPG.cc
Signed-off-by: Samuel Just <sam.just@inktank.com>
-rw-r--r-- | src/osd/ReplicatedPG.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 65661eac7cf..33b7bbef72e 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -60,8 +60,9 @@ #define dout_subsys ceph_subsys_osd #define DOUT_PREFIX_ARGS this, osd->whoami, get_osdmap() #undef dout_prefix -#define dout_prefix _prefix(_dout, this, osd->whoami, get_osdmap()) -static ostream& _prefix(std::ostream *_dout, PG *pg, int whoami, OSDMapRef osdmap) { +#define dout_prefix _prefix(_dout, this) +template <typename T> +static ostream& _prefix(std::ostream *_dout, T *pg) { return *_dout << pg->gen_prefix(); } |