"value range: 0.0-1.0");
}
-int execute_purge (const po::variables_map &vm,
- const std::vector<std::string> &ceph_global_init_args) {
+int execute_purge(const po::variables_map &vm,
+ const std::vector<std::string> &ceph_global_init_args) {
std::string pool_name;
std::string namespace_name;
size_t arg_index = 0;
r = rbd.trash_purge_with_progress(io_ctx, expire_ts, threshold, pc);
if (r < 0) {
pc.fail();
- } else {
- pc.finish();
+ return r;
}
+ pc.finish();
return 0;
}