mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-25 01:16:30 -05:00
fuse_open.cpp
This commit is contained in:
parent
dbdef0e659
commit
f61237ad84
1 changed files with 2 additions and 6 deletions
|
|
@ -331,12 +331,8 @@ namespace FUSE
|
|||
{
|
||||
std::mutex *m = nullptr;
|
||||
|
||||
pt.insert(PTMap::value_type{fusepath_,PT{}});
|
||||
pt.visit(fusepath_,
|
||||
[&](const PTMap::value_type &x_)
|
||||
{
|
||||
m = &x_.second.mutex;
|
||||
});
|
||||
m = PassthroughMutex::get_mutex(fusepath_);
|
||||
|
||||
fmt::print("lock {}\n",(void*)m);
|
||||
const std::lock_guard<std::mutex> lock(*m);
|
||||
fmt::print("locked {}\n",fusepath_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue