mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-24 06:18:25 +00:00
Merge pull request #143 from s3fs-fuse/issue#141
Fixed a bug no use_cache case about fixed #138 - issue#141
This commit is contained in:
commit
524e005b5c
@ -1254,6 +1254,10 @@ FdEntity* FdManager::ExistOpen(const char* path, int existfd)
|
||||
// found opend fd in map
|
||||
if(0 == strcmp((*iter).second->GetPath(), path)){
|
||||
ent = (*iter).second;
|
||||
// open
|
||||
if(-1 == ent->Open(-1, -1)){
|
||||
return NULL;
|
||||
}
|
||||
}else{
|
||||
// found fd, but it is used another file(file discriptor is recycled)
|
||||
// so returns NULL.
|
||||
|
Loading…
x
Reference in New Issue
Block a user