Signed-off-by: Jim Schutt <jaschut@xxxxxxxxxx> --- src/common/Throttle.h | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/common/Throttle.h b/src/common/Throttle.h index cd772dd..8fd2625 100644 --- a/src/common/Throttle.h +++ b/src/common/Throttle.h @@ -68,16 +68,15 @@ public: return count; } - bool get(int64_t c = 1, int64_t m = 0) { + void get(int64_t c = 1, int64_t m = 0) { assert(c >= 0); Mutex::Locker l(lock); if (m) { assert(m > 0); _reset_max(m); } - bool waited = _wait(c); + _wait(c); count += c; - return waited; } /* Returns true if it successfully got the requested amount, -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html