]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/test/multi_stress_watch.cc
update sources to v12.1.2
[ceph.git] / ceph / src / test / multi_stress_watch.cc
index 9b1b715f34828964a69c40b0d26ed7f0a2454732..f105c46e9b0a4f10c6c9aa5332823678eab91290 100644 (file)
@@ -42,6 +42,7 @@ test_loop(Rados &cluster, std::string pool_name, std::string obj_name)
     std::cerr << "ioctx_create " << pool_name << " failed with " << ret << std::endl;
     exit(1);
   }
+  ioctx.application_enable("rados", true);
 
   ret = ioctx.create(obj_name, false);
   if (ret < 0) {
@@ -64,6 +65,11 @@ test_loop(Rados &cluster, std::string pool_name, std::string obj_name)
   }
 
   ioctx.close();
+  ret = cluster.pool_delete(pool_name.c_str());
+  if (ret < 0) {
+    std::cerr << "pool_delete failed with " << ret << std::endl;
+    exit(1);
+  }
 }
 
 #pragma GCC diagnostic pop