mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
throttle: allow take(0)
This commit is contained in:
parent
0dc9569557
commit
26a4d0eacf
@ -62,7 +62,7 @@ public:
|
||||
}
|
||||
|
||||
int64_t take(int64_t c = 1) {
|
||||
assert(c > 0);
|
||||
assert(c >= 0);
|
||||
Mutex::Locker l(lock);
|
||||
count += c;
|
||||
return count;
|
||||
|
Loading…
Reference in New Issue
Block a user