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:
Takeshi Nakatani 2015-03-09 01:43:57 +09:00
commit 524e005b5c

View File

@ -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.