mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-09-28 17:29:02 +00:00
Unlock during early return in TruncateCache
Found via Coverity. Regression from
dfa63345ed
.
This commit is contained in:
parent
a3e820e733
commit
bcfadbe1a8
@ -347,6 +347,7 @@ bool StatCache::TruncateCache(void)
|
||||
pthread_mutex_lock(&StatCache::stat_cache_lock);
|
||||
|
||||
if(stat_cache.empty()){
|
||||
pthread_mutex_unlock(&StatCache::stat_cache_lock);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user