]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush/CrushTester.cc: remove unused variable
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 16 Sep 2015 11:57:48 +0000 (13:57 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 29 Jan 2016 20:51:17 +0000 (21:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/crush/CrushTester.cc

index adf147bd09316d0f20727a57b4272a38efaddea2..d9ba0ab4a12f60cd71968f3cb17f43f3d30395d5 100644 (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;