crush/CrushTester.cc: remove unused variable

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
Danny Al-Gaaf 2015-09-16 13:57:48 +02:00
parent 0cb445733b
commit 5d14351042

View File

@ -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;