Skip to content

Commit

Permalink
fix rate limiter crash facebook#286
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhe-bytedance committed Oct 23, 2014
1 parent 6848c4a commit 30906b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/rate_limiter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_) {
Expand Down

0 comments on commit 30906b5

Please sign in to comment.