From: Samuel Just Date: Wed, 29 May 2013 22:05:51 +0000 (-0700) Subject: WBThrottle: add some comments and some asserts X-Git-Tag: v0.65~194^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a55e03cdfe45754b2aff8110aa1a0518404f1218;p=ceph.git WBThrottle: add some comments and some asserts Signed-off-by: Samuel Just --- diff --git a/src/os/WBThrottle.cc b/src/os/WBThrottle.cc index 23e24765cc24..4673488f8334 100644 --- a/src/os/WBThrottle.cc +++ b/src/os/WBThrottle.cc @@ -206,6 +206,8 @@ void WBThrottle::clear() lru.clear(); rev_lru.clear(); cond.Signal(); + assert(cur_ios == 0); + assert(cur_size == 0); } void WBThrottle::clear_object(const hobject_t &hoid) diff --git a/src/os/WBThrottle.h b/src/os/WBThrottle.h index 797a6e78246b..070de08e1230 100644 --- a/src/os/WBThrottle.h +++ b/src/os/WBThrottle.h @@ -46,6 +46,10 @@ enum { class WBThrottle : Thread, public md_config_obs_t { hobject_t clearing; + /* *_limits.first is the start_flusher limit and + * *_limits.second is the hard limit + */ + /// Limits on unflushed bytes pair size_limits;