mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Add podman release build tooling + misc build fixes (#1455)
This commit is contained in:
parent
344014aa81
commit
fa3266ca7f
90 changed files with 1207 additions and 3657 deletions
|
|
@ -18,8 +18,7 @@
|
|||
#include "policy.hpp"
|
||||
#include "policy_rand.hpp"
|
||||
#include "policies.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include "rnd.hpp"
|
||||
|
||||
int
|
||||
Policy::Rand::Action::operator()(const Branches::CPtr &branches_,
|
||||
|
|
@ -30,10 +29,7 @@ Policy::Rand::Action::operator()(const Branches::CPtr &branches_,
|
|||
|
||||
rv = Policies::Action::all(branches_,fusepath_,paths_);
|
||||
if(rv == 0)
|
||||
{
|
||||
std::random_shuffle(paths_->begin(),paths_->end());
|
||||
paths_->resize(1);
|
||||
}
|
||||
RND::shrink_to_rand_elem(*paths_);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
@ -47,10 +43,7 @@ Policy::Rand::Create::operator()(const Branches::CPtr &branches_,
|
|||
|
||||
rv = Policies::Create::all(branches_,fusepath_,paths_);
|
||||
if(rv == 0)
|
||||
{
|
||||
std::random_shuffle(paths_->begin(),paths_->end());
|
||||
paths_->resize(1);
|
||||
}
|
||||
RND::shrink_to_rand_elem(*paths_);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
@ -64,10 +57,7 @@ Policy::Rand::Search::operator()(const Branches::CPtr &branches_,
|
|||
|
||||
rv = Policies::Search::all(branches_,fusepath_,paths_);
|
||||
if(rv == 0)
|
||||
{
|
||||
std::random_shuffle(paths_->begin(),paths_->end());
|
||||
paths_->resize(1);
|
||||
}
|
||||
RND::shrink_to_rand_elem(*paths_);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue