diff options
author | Sage Weil <sage@newdream.net> | 2011-11-16 13:10:58 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-11-16 13:11:07 -0800 |
commit | fa4b0fb961112d18655e51d9a66f9af7b397499a (patch) | |
tree | 1ff4657a0056741eec4b40bab7ddff201608f82d | |
parent | 17fa1e0d4eff7c8f661c181acbd4c2fdd2e14af6 (diff) | |
download | ceph-fa4b0fb961112d18655e51d9a66f9af7b397499a.tar.gz |
osd: add pending_ops assert
Just a sanity check, hopefully helping us track down #1727.
Signed-off-by: Sage Weil <sage@newdream.net>
-rw-r--r-- | src/osd/OSD.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index f9ae5828ba5..c3df7232102 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3185,6 +3185,7 @@ void OSD::handle_osd_map(MOSDMap *m) dout(15) << " will requeue " << *mess << dendl; rq.push_front(mess); } + assert(pending_ops == 0); // we paused the wq, and just emptied out the queue push_waiters(rq); // requeue under osd_lock! op_wq.unlock(); |