mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
commit
618767b12a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user