mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
crush/CrushTester.cc: remove unused variable
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
0cb445733b
commit
5d14351042
@ -254,12 +254,6 @@ int CrushTester::random_placement(int ruleno, vector<int>& out, int maxout, vect
|
||||
crush.get_max_devices() == 0)
|
||||
return -EINVAL;
|
||||
|
||||
// compute each device's proportional weight
|
||||
vector<float> proportional_weights( weight.size() );
|
||||
for (unsigned i = 0; i < weight.size(); i++) {
|
||||
proportional_weights[i] = (float) weight[i] / (float) total_weight;
|
||||
}
|
||||
|
||||
// determine the real maximum number of devices to return
|
||||
int devices_requested = min(maxout, get_maximum_affected_by_rule(ruleno));
|
||||
bool accept_placement = false;
|
||||
|
Loading…
Reference in New Issue
Block a user