Merge pull request #14308 from badone/SyntheticClient_random_walk_warning

client/SyntheticClient.cc: Fix warning in random_walk

Reviewed-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Yuri Weinstein 2017-04-05 15:00:13 -07:00 committed by GitHub
commit 618767b12a

View File

@ -2656,7 +2656,7 @@ int SyntheticClient::random_walk(int num_req)
}
// descend?
if (.9*roll_die(::pow((double).9,(double)cwd.depth())) && !subdirs.empty()) {
if (roll_die(::pow((double).9,(double)cwd.depth())) && !subdirs.empty()) {
string s = get_random_subdir();
cwd.push_dentry( s );
dout(DBL) << "cd " << s << " -> " << cwd << dendl;