mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-02-18 16:22:45 +08:00
fuse_open.cpp
This commit is contained in:
parent
726428ce59
commit
f647b78031
|
@ -344,11 +344,12 @@ namespace FUSE
|
||||||
open(const char *fusepath_,
|
open(const char *fusepath_,
|
||||||
fuse_file_info_t *ffi_)
|
fuse_file_info_t *ffi_)
|
||||||
{
|
{
|
||||||
|
std::mutex *m;
|
||||||
pt.emplace();
|
pt.emplace();
|
||||||
pt.visit(fusepath_,
|
pt.visit(fusepath_,
|
||||||
[](const PTMap::value_type &x_)
|
[&](const PTMap::value_type &x_)
|
||||||
{
|
{
|
||||||
x_.second.mutex.lock();
|
m = x_.second.mutex;
|
||||||
});
|
});
|
||||||
|
|
||||||
return open2(fusepath_,ffi_);
|
return open2(fusepath_,ffi_);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user