From b39001ec6ff0996860bcb5a3578bc2c66355c781 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Thu, 1 Sep 2016 14:45:01 -0700 Subject: [PATCH] osd: Fix logging to help with diagnostics These messages were not outputing the intended information Signed-off-by: David Zafman --- src/osd/PG.cc | 6 +++++- src/osd/ReplicatedBackend.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 6923c05e1ae..ffe2286a080 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -3844,8 +3844,12 @@ void PG::repair_object( const hobject_t& soid, list > *ok_peers, pg_shard_t bad_peer) { + list op_shards; + for (auto i : *ok_peers) { + op_shards.push_back(i.second); + } dout(10) << "repair_object " << soid << " bad_peer osd." - << bad_peer << " ok_peers osd.{" << ok_peers << "}" << dendl; + << bad_peer << " ok_peers osd.{" << op_shards << "}" << dendl; ScrubMap::object &po = ok_peers->back().first; eversion_t v; bufferlist bv; diff --git a/src/osd/ReplicatedBackend.cc b/src/osd/ReplicatedBackend.cc index aa58e02957b..5b19a6d4788 100644 --- a/src/osd/ReplicatedBackend.cc +++ b/src/osd/ReplicatedBackend.cc @@ -1485,7 +1485,7 @@ void ReplicatedBackend::prepare_pull( dout(7) << "pull " << soid << " v " << v - << " on osds " << *p + << " on osds " << q->second << " from osd." << fromshard << dendl;