mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-13 07:56:30 +00:00
Protect orgmeta with fdent_lock (#1678)
Fixes a crash seen with the CentOS 7 builder and when running with
AddressSanitizer. Regression introduced by
ac578d188e
. Fixes #1677.
This commit is contained in:
parent
7638b5b3e3
commit
4d39ea887e
@ -1323,9 +1323,9 @@ int FdEntity::RowFlush(int fd, const char* tpath, bool force_sync)
|
||||
}
|
||||
int result = 0;
|
||||
std::string tmppath = path;
|
||||
headers_t tmporgmeta = orgmeta;
|
||||
|
||||
AutoLock auto_lock(&fdent_lock);
|
||||
headers_t tmporgmeta = orgmeta;
|
||||
|
||||
// check pseudo fd and its flag
|
||||
fdinfo_map_t::iterator miter = pseudo_fd_map.find(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user