summaryrefslogtreecommitdiffstats
path: root/src/osd/PGBackend.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2018-04-23 22:03:59 +0200
committerCasey Bodley <cbodley@redhat.com>2018-04-24 00:08:25 +0200
commitc893dcaa43fbf6df2e5465062666a032c971fcdc (patch)
treeb5108c024bb2c5926474698589e579b695ba9727 /src/osd/PGBackend.h
parentMerge pull request #21442 from jcsp/wip-config (diff)
downloadceph-c893dcaa43fbf6df2e5465062666a032c971fcdc.tar.xz
ceph-c893dcaa43fbf6df2e5465062666a032c971fcdc.zip
dout: DoutPrefixProvider operates directly on stream
removes the need for stringstream in more complicated prefixes Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/osd/PGBackend.h')
-rw-r--r--src/osd/PGBackend.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osd/PGBackend.h b/src/osd/PGBackend.h
index 55f7f1d909d..51c35a81180 100644
--- a/src/osd/PGBackend.h
+++ b/src/osd/PGBackend.h
@@ -162,7 +162,7 @@ typedef ceph::shared_ptr<const OSDMap> OSDMapRef;
virtual const set<pg_shard_t> &get_acting_shards() const = 0;
virtual const set<pg_shard_t> &get_backfill_shards() const = 0;
- virtual std::string gen_dbg_prefix() const = 0;
+ virtual std::ostream& gen_dbg_prefix(std::ostream& out) const = 0;
virtual const map<hobject_t, set<pg_shard_t>> &get_missing_loc_shards()
const = 0;
@@ -310,8 +310,8 @@ typedef ceph::shared_ptr<const OSDMap> OSDMapRef;
OSDMapRef get_osdmap() const { return get_parent()->pgb_get_osdmap(); }
const pg_info_t &get_info() { return get_parent()->get_info(); }
- std::string gen_prefix() const {
- return parent->gen_dbg_prefix();
+ std::ostream& gen_prefix(std::ostream& out) const {
+ return parent->gen_dbg_prefix(out);
}
/**