]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ReplicatedPG: add some debugging if waiting_for_commit is non-empty
authorSamuel Just <sam.just@inktank.com>
Sun, 16 Feb 2014 01:32:34 +0000 (17:32 -0800)
committerSamuel Just <sam.just@inktank.com>
Tue, 18 Feb 2014 04:12:16 +0000 (20:12 -0800)
Signed-off-by: Samuel Just <sam.just@inktank.com>
src/osd/ReplicatedPG.cc

index 8bec51266f0e91677f22d0e8180d64750262f44b..520705dd6fc8a8d94fb65c361c5a3283be00508a 100644 (file)
@@ -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<eversion_t, list<OpRequestRef> >::iterator i =
+            waiting_for_ondisk.begin();
+          i != waiting_for_ondisk.end();
+          ++i) {
+       for (list<OpRequestRef>::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();