mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
cls_rgw: client api for bucket index init
create a client api function for bucket index init. Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
parent
b03adda4d9
commit
6ff23bb9e3
@ -6,6 +6,12 @@
|
||||
|
||||
using namespace librados;
|
||||
|
||||
void cls_rgw_bucket_init(ObjectWriteOperation& o)
|
||||
{
|
||||
bufferlist in;
|
||||
o.exec("rgw", "bucket_init_index", in);
|
||||
}
|
||||
|
||||
|
||||
void cls_rgw_bucket_prepare_op(ObjectWriteOperation& o, uint8_t op, string& tag,
|
||||
string& name, string& locator)
|
||||
|
@ -6,6 +6,8 @@
|
||||
#include "cls_rgw_types.h"
|
||||
|
||||
/* bucket index */
|
||||
void cls_rgw_bucket_init(librados::ObjectWriteOperation& o);
|
||||
|
||||
void cls_rgw_bucket_prepare_op(librados::ObjectWriteOperation& o, uint8_t op, string& tag,
|
||||
string& name, string& locator);
|
||||
|
||||
|
@ -2715,7 +2715,7 @@ int RGWRados::process_gc()
|
||||
int RGWRados::cls_rgw_init_index(librados::IoCtx& io_ctx, librados::ObjectWriteOperation& op, string& oid)
|
||||
{
|
||||
bufferlist in;
|
||||
op.exec("rgw", "bucket_init_index", in);
|
||||
cls_rgw_bucket_init(op);
|
||||
int r = io_ctx.operate(oid, &op);
|
||||
return r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user