From 1d5c85b825ccfda02ff74c29c8540fe60411c958 Mon Sep 17 00:00:00 2001 From: David Zafman Date: Wed, 23 Oct 2013 19:22:34 -0700 Subject: Temporary additional messages for testing --- src/osd/PG.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/osd/PG.cc b/src/osd/PG.cc index aa3014e24d3..94cd3b4805b 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -1036,13 +1036,19 @@ bool PG::choose_acting(int& newest_update_osd) //We can only get here when new interval has arrived and //we've accepted the acting set. Now we can create //actingbackfill and backfill_targets vectors. + dout(0) << "choose_acting dump actingonly" << actingonly << dendl; + dout(0) << "choose_acting dump actingbackfill" << actingbackfill << dendl; + dout(0) << "choose_acting dump backfill_targets" << backfill_targets << dendl; + dout(0) << "choose_acting dump backfill" << backfill << dendl; + dout(0) << "choose_acting dump stray_set " << stray_set << dendl; actingbackfill = actingonly; actingbackfill.insert(actingbackfill.end(), backfill.begin(), backfill.end()); assert(backfill_targets.empty() || backfill_targets == backfill); if (backfill_targets.empty()) { backfill_targets = backfill; for (unsigned i = 0; i < backfill.size() ; ++i) { - stray_set.erase(backfill[i]); + if (stray_set.erase(backfill[i]) == 1) + dout(0) << "choose_acting removed " << backfill[i] << " from stray_set" << dendl; } } else { //Will not change if already set because up would have had to change -- cgit v1.2.1