]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
TestCrushWrapper.cc: reduce scope of variabele
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 22 Oct 2014 08:50:48 +0000 (10:50 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sun, 26 Oct 2014 17:10:14 +0000 (18:10 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/test/crush/TestCrushWrapper.cc

index ced8a64e80cf0201f3b4c17a13d63b76ef712af7..5bf87d640e3b9af05ac38ad6380a62aa9d1aaf91 100644 (file)
@@ -83,12 +83,12 @@ TEST(CrushWrapper, move_bucket) {
                             ROOT_TYPE, 0, NULL, NULL, &root0));
   EXPECT_EQ(0, c->set_item_name(root0, "root0"));
 
-  int item = 0;
   {
     map<string,string> loc;
     loc["root"] = "root0";
     loc["host"] = "host0";
 
+    int item = 0;
     EXPECT_EQ(0, c->insert_item(g_ceph_context, item, 1.0,
                                "osd.0", loc));
   }