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 20:04:16 -0700 |
commit | af4d5bd3121eab7825f8841f13e984d7763e845a (patch) | |
tree | c08c14bd7219dd4864769a40ba02d6723edffb57 | |
parent | 065f420fd7374722e1f224581c9dfb6bddf2f19e (diff) | |
download | ceph-af4d5bd3121eab7825f8841f13e984d7763e845a.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(); } |