osd: Fix logging to help with diagnostics

These messages were not outputing the intended information

Signed-off-by: David Zafman <dzafman@redhat.com>
This commit is contained in:
David Zafman 2016-09-01 14:45:01 -07:00
parent d0503a52d0
commit b39001ec6f
2 changed files with 6 additions and 2 deletions

View File

@ -3844,8 +3844,12 @@ void PG::repair_object(
const hobject_t& soid, list<pair<ScrubMap::object, pg_shard_t> > *ok_peers,
pg_shard_t bad_peer)
{
list<pg_shard_t> 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;

View File

@ -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;