]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/rbd_mirror/test_fixture.cc
update sources to v12.1.2
[ceph.git] / ceph / src / test / rbd_mirror / test_fixture.cc
index b095f7372caf24794d92e9ad430b5d48ab71b39c..221d618d4923c1d2ce950ba655459f53d2560e9e 100644 (file)
@@ -31,9 +31,17 @@ void TestFixture::SetUpTestCase() {
   _local_pool_name = get_temp_pool_name("test-rbd-mirror-");
   ASSERT_EQ(0, _rados->pool_create(_local_pool_name.c_str()));
 
+  librados::IoCtx local_ioctx;
+  ASSERT_EQ(0, _rados->ioctx_create(_local_pool_name.c_str(), local_ioctx));
+  local_ioctx.application_enable("rbd", true);
+
   _remote_pool_name = get_temp_pool_name("test-rbd-mirror-");
   ASSERT_EQ(0, _rados->pool_create(_remote_pool_name.c_str()));
 
+  librados::IoCtx remote_ioctx;
+  ASSERT_EQ(0, _rados->ioctx_create(_remote_pool_name.c_str(), remote_ioctx));
+  remote_ioctx.application_enable("rbd", true);
+
   ASSERT_EQ(0, create_image_data_pool(_data_pool));
   if (!_data_pool.empty()) {
     printf("using image data pool: %s\n", _data_pool.c_str());