From: myoungwon oh Date: Mon, 3 Aug 2020 07:11:44 +0000 (+0900) Subject: src/test: remove unused code X-Git-Tag: v16.1.0~1248^2~20 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8d7f79ff4994862bcd8b220d1c1daa327a4d7a46;p=ceph.git src/test: remove unused code no need to configure existing tier mode Signed-off-by: Myoungwon Oh --- diff --git a/src/test/librados/tier_cxx.cc b/src/test/librados/tier_cxx.cc index d49e46dfcf31..ba839ea42b6b 100644 --- a/src/test/librados/tier_cxx.cc +++ b/src/test/librados/tier_cxx.cc @@ -2957,14 +2957,6 @@ TEST_F(LibRadosTwoPoolsPP, SetRedirectRead) { ASSERT_EQ(0, cache_ioctx.operate("bar", &op)); } - // configure tier - bufferlist inbl; - ASSERT_EQ(0, cluster.mon_command( - "{\"prefix\": \"osd tier add\", \"pool\": \"" + pool_name + - "\", \"tierpool\": \"" + cache_pool_name + - "\", \"force_nonempty\": \"--force-nonempty\" }", - inbl, NULL, NULL)); - // wait for maps to settle cluster.wait_for_latest_osdmap(); @@ -2984,11 +2976,6 @@ TEST_F(LibRadosTwoPoolsPP, SetRedirectRead) { ASSERT_EQ('t', bl[0]); } - ASSERT_EQ(0, cluster.mon_command( - "{\"prefix\": \"osd tier remove\", \"pool\": \"" + pool_name + - "\", \"tierpool\": \"" + cache_pool_name + "\"}", - inbl, NULL, NULL)); - // wait for maps to settle before next test cluster.wait_for_latest_osdmap(); } @@ -3093,14 +3080,6 @@ TEST_F(LibRadosTwoPoolsPP, ManifestPromoteRead) { ASSERT_EQ(0, cache_ioctx.operate("bar-chunk", &op)); } - // configure tier - bufferlist inbl; - ASSERT_EQ(0, cluster.mon_command( - "{\"prefix\": \"osd tier add\", \"pool\": \"" + pool_name + - "\", \"tierpool\": \"" + cache_pool_name + - "\", \"force_nonempty\": \"--force-nonempty\" }", - inbl, NULL, NULL)); - // wait for maps to settle cluster.wait_for_latest_osdmap(); @@ -3158,11 +3137,6 @@ TEST_F(LibRadosTwoPoolsPP, ManifestPromoteRead) { ASSERT_EQ('C', bl[0]); } - ASSERT_EQ(0, cluster.mon_command( - "{\"prefix\": \"osd tier remove\", \"pool\": \"" + pool_name + - "\", \"tierpool\": \"" + cache_pool_name + "\"}", - inbl, NULL, NULL)); - // wait for maps to settle before next test cluster.wait_for_latest_osdmap(); }