From bc31c4b32aeada72e6007001e2e1b97dc97a7217 Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Sat, 15 Feb 2014 17:32:34 -0800 Subject: [PATCH] ReplicatedPG: add some debugging if waiting_for_commit is non-empty Signed-off-by: Samuel Just --- src/osd/ReplicatedPG.cc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 8bec51266f0..520705dd6fc 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -8761,7 +8761,20 @@ void ReplicatedPG::apply_and_flush_repops(bool requeue) if (requeue) { requeue_ops(rq); - assert(waiting_for_ondisk.empty()); + if (!waiting_for_ondisk.empty()) { + for (map >::iterator i = + waiting_for_ondisk.begin(); + i != waiting_for_ondisk.end(); + ++i) { + for (list::iterator j = i->second.begin(); + j != i->second.end(); + ++j) { + derr << __func__ << ": op " << *((*j)->get_req()) << " waiting on " + << i->first << dendl; + } + } + assert(waiting_for_ondisk.empty()); + } } waiting_for_ondisk.clear(); -- 2.47.3