Skip to content

Commit

Permalink
osd: make each OSD get a different random seed for get_tick_interval
Browse files Browse the repository at this point in the history
This is a luminous-only commit because luminous has its own
implementation of get_tick_interval.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Oct 5, 2018
1 parent 63ac56a commit 7d5d55d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/osd/OSD.cc
Expand Up @@ -2055,7 +2055,7 @@ double OSD::get_tick_interval() const
{
// vary +/- 5% to avoid scrub scheduling livelocks
constexpr auto delta = 0.05;
std::default_random_engine rng;
std::default_random_engine rng{whoami};
return (OSD_TICK_INTERVAL *
std::uniform_real_distribution<>{1.0 - delta, 1.0 + delta}(rng));
}
Expand Down

0 comments on commit 7d5d55d

Please sign in to comment.