From: Zhiqiang Wang Date: Mon, 9 Feb 2015 00:22:30 +0000 (+0800) Subject: osd/ReplicatedPG: add assertion in apply_and_flush_repops X-Git-Tag: v0.93~21^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=169c620ffb6095966fb8dc70ccdb4085b1fb6516;p=ceph.git osd/ReplicatedPG: add assertion in apply_and_flush_repops Signed-off-by: Zhiqiang Wang --- diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index 7877b2e07ecd..ba70567efd40 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -10255,6 +10255,9 @@ void ReplicatedPG::apply_and_flush_repops(bool requeue) remove_repop(repop); } + assert(repop_map.empty()); + assert(repop_queue.empty()); + if (requeue) { requeue_ops(rq); if (!waiting_for_ondisk.empty()) {