From f9056d0d9f851128308f4f7b38736657b7380e51 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 19 Apr 2011 14:32:56 -0700 Subject: [PATCH] osd: better debug output on replay completion Signed-off-by: Sage Weil --- src/osd/OSD.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 152ab18e90910..e582a7f631b64 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -4902,19 +4902,20 @@ void OSD::activate_pg(pg_t pgid, utime_t activate_at) { assert(osd_lock.is_locked()); - dout(10) << "activate_pg" << dendl; if (pg_map.count(pgid)) { PG *pg = _lookup_lock_pg(pgid); + dout(10) << "activate_pg " << *pg << dendl; if (pg->is_active() && pg->is_replay() && pg->get_role() == 0 && pg->replay_until == activate_at) { - pg->replay_queued_ops(); } pg->unlock(); + } else { + dout(10) << "activate_pg pgid " << pgid << " (not found)" << dendl; } - + // wake up _all_ pg waiters; raw pg -> actual pg mapping may have shifted wake_all_pg_waiters(); } -- 2.39.5