Merge pull request #1092 from liuyongqing/master

fix coredump caused by fd_manager_lock locking
This commit is contained in:
Takeshi Nakatani 2019-07-15 04:53:10 +09:00 committed by GitHub
commit 850a813171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2125,7 +2125,7 @@ FdEntity* FdManager::Open(const char* path, headers_t* pmeta, off_t size, time_t
} }
bool close = false; bool close = false;
FdEntity* ent; FdEntity* ent;
{
AutoLock auto_lock(&FdManager::fd_manager_lock); AutoLock auto_lock(&FdManager::fd_manager_lock);
// search in mapping by key(path) // search in mapping by key(path)
@ -2178,7 +2178,6 @@ FdEntity* FdManager::Open(const char* path, headers_t* pmeta, off_t size, time_t
}else{ }else{
return NULL; return NULL;
} }
}
// open // open
if(0 != ent->Open(pmeta, size, time, no_fd_lock_wait)){ if(0 != ent->Open(pmeta, size, time, no_fd_lock_wait)){