mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-20 06:56:27 -05:00
Fix branch snapshot lifetime in EXDEV link fallback
This commit is contained in:
parent
b0d344308d
commit
ecb4de5bc0
2 changed files with 5 additions and 1 deletions
|
|
@ -306,7 +306,8 @@ _link_exdev(const fs::path &oldpath_,
|
|||
return -EXDEV;
|
||||
}
|
||||
|
||||
rv = (*sourcePolicy)(cfg.branches,oldpath_,oldbranches);
|
||||
const Branches::Ptr branches = cfg.branches;
|
||||
rv = (*sourcePolicy)(branches,oldpath_,oldbranches);
|
||||
if(rv < 0)
|
||||
return rv;
|
||||
if(oldbranches.empty())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue