Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
int RGWBucketReshard::clear_resharding()
{
cls_rgw_bucket_instance_entry instance_entry;
-
+
int ret = store->bucket_set_reshard(bucket_info, instance_entry);
if (ret < 0) {
ldout(store->ctx(), 0) << "RGWReshard::" << __func__ << " ERROR: error setting bucket resharding flag on bucket index: "
return -ERR_BUSY_RESHARDING;
}
-
int RGWReshard::process_single_logshard(int logshard_num)
{
string marker;
CephContext *cct = store->ctx();
int max_entries = 1000;
int max_secs = 60;
-
+
rados::cls::lock::Lock l(reshard_lock_name);
utime_t time(max_secs, 0);