mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-18 02:05:13 +00:00
Merge pull request #1092 from liuyongqing/master
fix coredump caused by fd_manager_lock locking
This commit is contained in:
commit
850a813171
@ -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)){
|
||||||
|
Loading…
Reference in New Issue
Block a user