]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/librbd: ensure OutOfOrder test has enough concurrent management ops 21436/head
authorMykola Golub <mgolub@suse.com>
Sun, 15 Apr 2018 19:33:44 +0000 (22:33 +0300)
committerMykola Golub <mgolub@suse.com>
Tue, 17 Apr 2018 13:04:23 +0000 (16:04 +0300)
Signed-off-by: Mykola Golub <mgolub@suse.com>
src/test/librbd/deep_copy/test_mock_ImageCopyRequest.cc

index 083e51d7e11193bd757ee18d8d5db8c43a2fb8a4..bd8932e788bb148390c1af21813224284f282209 100644 (file)
@@ -221,6 +221,14 @@ TEST_F(TestMockDeepCopyImageCopyRequest, SimpleImage) {
 }
 
 TEST_F(TestMockDeepCopyImageCopyRequest, OutOfOrder) {
+  std::string max_ops_str;
+  ASSERT_EQ(0, _rados.conf_get("rbd_concurrent_management_ops", max_ops_str));
+  ASSERT_EQ(0, _rados.conf_set("rbd_concurrent_management_ops", "10"));
+  BOOST_SCOPE_EXIT( (max_ops_str) ) {
+    ASSERT_EQ(0, _rados.conf_set("rbd_concurrent_management_ops",
+                                 max_ops_str.c_str()));
+  } BOOST_SCOPE_EXIT_END;
+
   librados::snap_t snap_id_end;
   ASSERT_EQ(0, create_snap("copy", &snap_id_end));