mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-13 07:56:30 +00:00
Merge pull request #1109 from gaul/lock-already-held
Pass lock_already_held state to DelStat
This commit is contained in:
commit
3d42d0515d
@ -245,7 +245,7 @@ bool StatCache::GetStat(const string& key, struct stat* pst, headers_t* meta, bo
|
|||||||
if(ent->noobjcache){
|
if(ent->noobjcache){
|
||||||
if(!IsCacheNoObject){
|
if(!IsCacheNoObject){
|
||||||
// need to delete this cache.
|
// need to delete this cache.
|
||||||
DelStat(strpath);
|
DelStat(strpath, /*lock_already_held=*/ true);
|
||||||
}else{
|
}else{
|
||||||
// noobjcache = true means no object.
|
// noobjcache = true means no object.
|
||||||
}
|
}
|
||||||
@ -339,7 +339,7 @@ bool StatCache::IsNoObjectCache(string& key, bool overcheck)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(is_delete_cache){
|
if(is_delete_cache){
|
||||||
DelStat(strpath);
|
DelStat(strpath, /*lock_already_held=*/ true);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user