mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-22 16:58:55 +00:00
Fixed a bug in clearing the queue accumulated during USR1 processing
This commit is contained in:
parent
3ff93d7342
commit
b8e56a40b2
@ -113,9 +113,7 @@ void S3fsSignals::CheckCacheWorker(Semaphore* pSem)
|
||||
}
|
||||
|
||||
// do not allow request queuing
|
||||
for(int value = pSem->get_value(); 0 < value; value = pSem->get_value()){
|
||||
pSem->wait();
|
||||
}
|
||||
while(pSem->try_wait());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user