]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
tools/rbd: s/set_osdmap_full_try/set_pool_full_try/
authorKefu Chai <kchai@redhat.com>
Fri, 27 Sep 2019 08:41:22 +0000 (16:41 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 28 Sep 2019 08:09:58 +0000 (16:09 +0800)
as set_osdmap_full_try() is deprecated now

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/tools/rados/rados.cc
src/tools/rbd/action/Migration.cc
src/tools/rbd/action/Remove.cc
src/tools/rbd/action/Snap.cc
src/tools/rbd/action/Trash.cc

index d88f00337f0f0f7fa483d77b553ee3cf913d103e..7096041ea935a50c3a861341ca7b4efb4007826a 100644 (file)
@@ -3041,7 +3041,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
       return 1;
     }
     io_ctx.set_namespace(all_nspaces);
-    io_ctx.set_osdmap_full_try();
+    io_ctx.set_pool_full_try();
     RadosBencher bencher(g_ceph_context, rados, io_ctx);
     ret = bencher.clean_up_slow("", concurrent_ios);
     if (ret >= 0) {
index bb05e376d01e82a16e367b7a677f4d95b5f79742..d47801ef76c598fb514466625c615a16816e63c1 100644 (file)
@@ -169,7 +169,7 @@ int execute_prepare(const po::variables_map &vm,
   if (r < 0) {
     return r;
   }
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
 
   std::string dest_pool_name;
   std::string dest_namespace_name;
@@ -232,7 +232,7 @@ int execute_execute(const po::variables_map &vm,
   if (r < 0) {
     return r;
   }
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
 
   r = do_execute(io_ctx, image_name, vm[at::NO_PROGRESS].as<bool>());
   if (r < 0) {
@@ -268,7 +268,7 @@ int execute_abort(const po::variables_map &vm,
   if (r < 0) {
     return r;
   }
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
 
   r = do_abort(io_ctx, image_name, vm[at::NO_PROGRESS].as<bool>());
   if (r < 0) {
@@ -306,7 +306,7 @@ int execute_commit(const po::variables_map &vm,
   if (r < 0) {
     return r;
   }
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
 
   r = do_commit(io_ctx, image_name, vm["force"].as<bool>(),
                 vm[at::NO_PROGRESS].as<bool>());
index 337d42be610e585490c10a86b7c33ecb01189891..c5dcf232312840a836541d5b431d4b51b138633a 100644 (file)
@@ -77,7 +77,7 @@ int execute(const po::variables_map &vm,
     return r;
   }
 
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
 
   librbd::RBD rbd;
   r = do_delete(rbd, io_ctx, image_name.c_str(),
index 70cf62dab0cc406000ed2205c54c0db5bc26447e..c652ce1c2fef0769375819ce3f11bc3ff932ed5e 100644 (file)
@@ -448,7 +448,7 @@ int execute_remove(const po::variables_map &vm,
     return r;
   }
 
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
   if (image_id.empty()) {
     r = utils::open_image(io_ctx, image_name, false, &image);
   } else {
@@ -521,7 +521,7 @@ int execute_purge(const po::variables_map &vm,
     return r;
   }
 
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
   if (image_id.empty()) {
     r = utils::open_image(io_ctx, image_name, false, &image);
   } else {
@@ -671,7 +671,7 @@ int execute_unprotect(const po::variables_map &vm,
     return r;
   }
 
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
   if (image_id.empty()) {
     r = utils::open_image(io_ctx, image_name, false, &image);
   } else {
index d9900611c2976880ed96c9e67ebe71180a9f6eac..16b11b9e38d23199a8a2b730fcc44f6911b840f8 100644 (file)
@@ -135,7 +135,7 @@ int execute_remove(const po::variables_map &vm,
     return r;
   }
 
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
   librbd::RBD rbd;
 
   utils::ProgressContext pc("Removing image", vm[at::NO_PROGRESS].as<bool>());
@@ -418,7 +418,7 @@ int execute_purge (const po::variables_map &vm,
     return r;
   }
 
-  io_ctx.set_osdmap_full_try();
+  io_ctx.set_pool_full_try();
 
   float threshold = -1;
   time_t expire_ts = 0;