mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-29 12:03:59 +08:00
fuse_open.cpp
This commit is contained in:
parent
fbae87f9a5
commit
e7c76f21cb
|
@ -35,6 +35,12 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
struct PT
|
||||
{
|
||||
int backing_id;
|
||||
std::mutex mutex;
|
||||
};
|
||||
|
||||
static boost::unordered::concurrent_flat_map<std::string,int> pt;
|
||||
|
||||
|
||||
|
@ -328,7 +334,8 @@ namespace FUSE
|
|||
open(const char *fusepath_,
|
||||
fuse_file_info_t *ffi_)
|
||||
{
|
||||
|
||||
pt.try_emplace_or_visit(fusepath_,
|
||||
|
||||
|
||||
|
||||
return open2(fusepath_,ffi_);
|
||||
|
|
Loading…
Reference in New Issue
Block a user