mirror of
https://github.com/ceph/ceph
synced 2025-03-05 15:58:41 +00:00
Merge pull request #8367 from Yan-waller/yj-wip-utthrottle
test/throttle: reassign the value of 'delay' in ThrottleTest.get Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
This commit is contained in:
commit
e1dd16f471
@ -52,6 +52,7 @@ protected:
|
||||
}
|
||||
|
||||
virtual void *entry() {
|
||||
usleep(5);
|
||||
waited = throttle.get(count);
|
||||
throttle.put(count);
|
||||
return NULL;
|
||||
@ -123,6 +124,7 @@ TEST_F(ThrottleTest, get) {
|
||||
delay *= 2;
|
||||
} while(!waited);
|
||||
|
||||
delay = 1;
|
||||
do {
|
||||
cout << "Trying (2) with delay " << delay << "us\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user