From 28be16b1dc60db6cb29503ce726a582d7f52a915 Mon Sep 17 00:00:00 2001 From: yinqiwen Date: Mon, 15 Sep 2014 20:43:38 +0800 Subject: [PATCH] fix rate limiter crash #286 --- util/rate_limiter.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/rate_limiter.cc b/util/rate_limiter.cc index cde86f3c9e..47f96de84b 100644 --- a/util/rate_limiter.cc +++ b/util/rate_limiter.cc @@ -60,7 +60,7 @@ GenericRateLimiter::~GenericRateLimiter() { } void GenericRateLimiter::Request(int64_t bytes, const Env::IOPriority pri) { - assert(bytes < refill_bytes_per_period_); + assert(bytes <= refill_bytes_per_period_); MutexLock g(&request_mutex_); if (stop_) {