From 170db6901f6b97122576841b5eedec0ed050ca7d Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 22 Oct 2014 10:50:48 +0200 Subject: [PATCH] TestCrushWrapper.cc: reduce scope of variabele Signed-off-by: Danny Al-Gaaf --- src/test/crush/TestCrushWrapper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/crush/TestCrushWrapper.cc b/src/test/crush/TestCrushWrapper.cc index ced8a64e80cf0..5bf87d640e3b9 100644 --- a/src/test/crush/TestCrushWrapper.cc +++ b/src/test/crush/TestCrushWrapper.cc @@ -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 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)); } -- 2.39.5