]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rados: allow "rados purge" to delete objects when osd is full
authorPan Liu <pan.liu@istuary.com>
Tue, 7 Mar 2017 05:02:26 +0000 (13:02 +0800)
committerPan Liu <pan.liu@istuary.com>
Tue, 7 Mar 2017 05:02:26 +0000 (13:02 +0800)
Signed-off-by: Pan Liu <liupan1111@gmail.com>
src/tools/rados/rados.cc

index 5a100e264eeda9d83d0b58fd61912da504ea0e11..0356def0f3a1bc5513dcd0f98bc3341a4249728f 100644 (file)
@@ -2855,6 +2855,7 @@ static int rados_tool_common(const std::map < std::string, std::string > &opts,
       goto out;
     }
     io_ctx.set_namespace(all_nspaces);
+    io_ctx.set_osdmap_full_try();
     RadosBencher bencher(g_ceph_context, rados, io_ctx);
     ret = bencher.clean_up_slow("", concurrent_ios);
     if (ret >= 0) {