提交 28be16b1 编写于 作者: Y yinqiwen

fix rate limiter crash #286

上级 04ce1b25
......@@ -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_) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册