mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
fix policy_eppfrd.cpp: return 0 when branchinfo found, -ENOENT only when empty
This commit is contained in:
parent
f227a63e15
commit
8648de6bb6
1 changed files with 4 additions and 1 deletions
|
|
@ -132,7 +132,10 @@ _get_branchinfo_search(const Branches::Ptr &branches_,
|
|||
branchinfo_->push_back({spaceavail,&branch});
|
||||
}
|
||||
|
||||
return -ENOENT;
|
||||
if(branchinfo_->empty())
|
||||
return -ENOENT;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue