From 29f644421b392e19449914cdb5879136b1ff9998 Mon Sep 17 00:00:00 2001 From: Enming Zhang Date: Fri, 15 Dec 2017 11:48:02 +0800 Subject: [PATCH] PG: clean up repeated calling and use __func__ in dout Signed-off-by: Enming Zhang --- src/osd/PG.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index 6d6ca365965e..2d2dddf72d7d 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1237,10 +1237,11 @@ void PG::calc_replicated_acting( set *acting_backfill, ostream &ss) { - ss << "calc_acting newest update on osd." << auth_log_shard->first + pg_shard_t auth_log_shard_id = auth_log_shard->first; + + ss << __func__ << " newest update on osd." << auth_log_shard_id << " with " << auth_log_shard->second << (restrict_to_up_acting ? " restrict_to_up_acting" : "") << std::endl; - pg_shard_t auth_log_shard_id = auth_log_shard->first; // select primary map::const_iterator primary; @@ -1257,7 +1258,7 @@ void PG::calc_replicated_acting( primary = auth_log_shard; } - ss << "calc_acting primary is osd." << primary->first + ss << __func__ << " primary is osd." << primary->first << " with " << primary->second << std::endl; want->push_back(primary->first.osd); acting_backfill->insert(primary->first); -- 2.47.3