mirror of
https://github.com/ceph/ceph
synced 2025-01-19 09:32:00 +00:00
throttle: fix assert count to actually use count
This commit is contained in:
parent
989c9ee149
commit
8413ed49ee
@ -76,7 +76,7 @@ public:
|
||||
Mutex::Locker l(lock);
|
||||
cond.SignalOne();
|
||||
count -= c;
|
||||
assert(c>=0); //if count goes negative, we failed somewhere!
|
||||
assert(count >= 0); //if count goes negative, we failed somewhere!
|
||||
return count;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user