http_ret = rl.delete_bound(shard, daemon_id);
}
-static int bucket_name_to_bucket(RGWRados *store, string& bucket_str, rgw_bucket& bucket) {
+static int bucket_instance_to_bucket(RGWRados *store, string& bucket_instance, rgw_bucket& bucket) {
RGWBucketInfo bucket_info;
- RGWObjVersionTracker objv_tracker;
time_t mtime;
- int r = store->get_bucket_info(NULL, bucket_str, bucket_info, &objv_tracker, &mtime);
+ int r = store->get_bucket_instance_info(NULL, bucket_instance, bucket_info, &mtime, NULL);
if (r < 0) {
- dout(5) << "could not get bucket info for bucket=" << bucket_str << dendl;
+ dout(5) << "could not get bucket instance info for bucket=" << bucket_instance << dendl;
return -EINVAL;
}
}
void RGWOp_BILog_SetBounds::execute() {
- string bucket_str = s->info.args.get("bucket"),
+ string bucket_instance = s->info.args.get("bucket-instance"),
marker = s->info.args.get("marker"),
time = s->info.args.get("time"),
daemon_id = s->info.args.get("daemon_id");
- if (bucket_str.empty() ||
+ if (bucket_instance.empty() ||
marker.empty() ||
time.empty() ||
daemon_id.empty()) {
}
rgw_bucket bucket;
- if ((http_ret = bucket_name_to_bucket(store, bucket_str, bucket)) < 0)
+ if ((http_ret = bucket_instance_to_bucket(store, bucket_instance, bucket)) < 0)
return;
RGWReplicaBucketLogger rl(store);
}
void RGWOp_BILog_GetBounds::execute() {
- string bucket_str = s->info.args.get("bucket");
+ string bucket_instance = s->info.args.get("bucket-instance");
- if (bucket_str.empty()) {
+ if (bucket_instance.empty()) {
dout(5) << " Error - invalid parameter list" << dendl;
http_ret = -EINVAL;
return;
}
rgw_bucket bucket;
- if ((http_ret = bucket_name_to_bucket(store, bucket_str, bucket)) < 0)
+ if ((http_ret = bucket_instance_to_bucket(store, bucket_instance, bucket)) < 0)
return;
RGWReplicaBucketLogger rl(store);
}
void RGWOp_BILog_DeleteBounds::execute() {
- string bucket_str = s->info.args.get("bucket"),
+ string bucket_instance = s->info.args.get("bucket-instance"),
daemon_id = s->info.args.get("daemon_id");
- if (bucket_str.empty() ||
+ if (bucket_instance.empty() ||
daemon_id.empty()) {
dout(5) << "Error - invalid parameter list" << dendl;
http_ret = -EINVAL;
}
rgw_bucket bucket;
- if ((http_ret = bucket_name_to_bucket(store, bucket_str, bucket)) < 0)
+ if ((http_ret = bucket_instance_to_bucket(store, bucket_instance, bucket)) < 0)
return;
RGWReplicaBucketLogger rl(store);