{
bufferlist in;
librados::ObjectWriteOperation op;
- op.exec("rgw", "bi_log_resync", in);
+ op.exec(RGW_CLASS, RGW_BI_LOG_RESYNC, in);
return manager->aio_operate(io_ctx, oid, &op);
}
{
bufferlist in;
librados::ObjectWriteOperation op;
- op.exec("rgw", "bi_log_stop", in);
+ op.exec(RGW_CLASS, RGW_BI_LOG_STOP, in);
return manager->aio_operate(io_ctx, oid, &op);
}
cls_rgw_reshard_add_op call;
call.entry = entry;
encode(call, in);
- op.exec("rgw", "reshard_add", in);
+ op.exec(RGW_CLASS, RGW_RESHARD_ADD, in);
}
int cls_rgw_reshard_list(librados::IoCtx& io_ctx, const string& oid, string& marker, uint32_t max,
call.marker = marker;
call.max = max;
encode(call, in);
- int r = io_ctx.exec(oid, "rgw", "reshard_list", in, out);
+ int r = io_ctx.exec(oid, RGW_CLASS, RGW_RESHARD_LIST, in, out);
if (r < 0)
return r;
cls_rgw_reshard_get_op call;
call.entry = entry;
encode(call, in);
- int r = io_ctx.exec(oid, "rgw", "reshard_get", in, out);
+ int r = io_ctx.exec(oid, RGW_CLASS, RGW_RESHARD_GET, in, out);
if (r < 0)
return r;
call.bucket_name = entry.bucket_name;
call.bucket_id = entry.bucket_id;
encode(call, in);
- op.exec("rgw", "reshard_remove", in);
+ op.exec(RGW_CLASS, RGW_RESHARD_REMOVE, in);
}
int cls_rgw_set_bucket_resharding(librados::IoCtx& io_ctx, const string& oid,
cls_rgw_set_bucket_resharding_op call;
call.entry = entry;
encode(call, in);
- return io_ctx.exec(oid, "rgw", "set_bucket_resharding", in, out);
+ return io_ctx.exec(oid, RGW_CLASS, RGW_SET_BUCKET_RESHARDING, in, out);
}
int cls_rgw_clear_bucket_resharding(librados::IoCtx& io_ctx, const string& oid)
bufferlist in, out;
cls_rgw_clear_bucket_resharding_op call;
encode(call, in);
- return io_ctx.exec(oid, "rgw", "clear_bucket_resharding", in, out);
+ return io_ctx.exec(oid, RGW_CLASS, RGW_CLEAR_BUCKET_RESHARDING, in, out);
}
int cls_rgw_get_bucket_resharding(librados::IoCtx& io_ctx, const string& oid,
bufferlist in, out;
cls_rgw_get_bucket_resharding_op call;
encode(call, in);
- int r= io_ctx.exec(oid, "rgw", "get_bucket_resharding", in, out);
+ int r= io_ctx.exec(oid, RGW_CLASS, RGW_GET_BUCKET_RESHARDING, in, out);
if (r < 0)
return r;
cls_rgw_guard_bucket_resharding_op call;
call.ret_err = ret_err;
encode(call, in);
- op.exec("rgw", "guard_bucket_resharding", in);
+ op.exec(RGW_CLASS, RGW_GUARD_BUCKET_RESHARDING, in);
}
static bool issue_set_bucket_resharding(librados::IoCtx& io_ctx, const string& oid,
call.entry = entry;
encode(call, in);
librados::ObjectWriteOperation op;
- op.exec("rgw", "set_bucket_resharding", in);
+ op.exec(RGW_CLASS, RGW_SET_BUCKET_RESHARDING, in);
return manager->aio_operate(io_ctx, oid, &op);
}