]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix the build failure
authorKefu Chai <kchai@redhat.com>
Tue, 15 Dec 2015 04:28:13 +0000 (12:28 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 15 Dec 2015 06:17:06 +0000 (14:17 +0800)
* s/bucket_name_str/bucket_name/
* the member variable name of `req_state` was changed to `bucket_name`
  in f7ca00a. but some commits was still using the old name before the
  commit got merged.
* fixes for the tenant related change
* also fixes a typo

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_op.cc
src/rgw/rgw_rest_swift.cc

index 17a4cdeec236395de6cd3207331a02593e568db5..d1e8b71cc266d32a7dfe4740203ef383fbb0bb20 100644 (file)
@@ -1020,7 +1020,8 @@ int RGWGetObj::handle_slo_manifest(bufferlist& bl)
         RGWBucketInfo bucket_info;
         map<string, bufferlist> bucket_attrs;
         RGWObjectCtx obj_ctx(store);
-        int r = store->get_bucket_info(obj_ctx, bucket_name, bucket_info, NULL, &bucket_attrs);
+        int r = store->get_bucket_info(obj_ctx, s->user.user_id.tenant,
+              bucket_name, bucket_info, NULL, &bucket_attrs);
         if (r < 0) {
           ldout(s->cct, 0) << "could not get bucket info for bucket=" << bucket_name << dendl;
           return r;
@@ -2729,9 +2730,9 @@ int RGWDeleteObj::handle_slo_manifest(bufferlist& bl)
     items.push_back(path);
   }
 
-  /* Request removal of the manifet object itself. */
+  /* Request removal of the manifest object itself. */
   RGWBulkDelete::acct_path_t path;
-  path.bucket_name = s->bucket_name_str;
+  path.bucket_name = s->bucket_name;
   path.obj_key = s->object;
   items.push_back(path);
 
@@ -4125,7 +4126,8 @@ bool RGWBulkDelete::Deleter::delete_single(const acct_path_t& path)
 
   RGWBucketInfo binfo;
   map<string, bufferlist> battrs;
-  ret = store->get_bucket_info(obj_ctx, path.bucket_name, binfo, NULL, &battrs);
+  ret = store->get_bucket_info(obj_ctx, s->user.user_id.tenant,
+      path.bucket_name, binfo, NULL, &battrs);
   if (ret < 0) {
     goto binfo_fail;
   }
@@ -4162,7 +4164,7 @@ bool RGWBulkDelete::Deleter::delete_single(const acct_path_t& path)
 
     ret = store->delete_bucket(binfo.bucket, ot);
     if (0 == ret) {
-      ret = rgw_unlink_bucket(store, binfo.owner, binfo.bucket.name, false);
+      ret = rgw_unlink_bucket(store, binfo.owner, binfo.bucket.tenant, binfo.bucket.name, false);
       if (ret < 0) {
         ldout(s->cct, 0) << "WARNING: failed to unlink bucket: ret=" << ret << dendl;
       }
index 21a0336022bb552240ac34fc3e44fbd3b3f5e2e4..6fed37c9b9b10329c1f8b69176dd68446d87bb3a 100644 (file)
@@ -819,7 +819,7 @@ void RGWDeleteObj_ObjStore_SWIFT::send_response()
       bulkdelete_respond(0, 1, {}, s->prot_flags, *s->formatter);
     } else {
       RGWBulkDelete::acct_path_t path;
-      path.bucket_name = s->bucket_name_str;
+      path.bucket_name = s->bucket_name;
       path.obj_key = s->object;
 
       RGWBulkDelete::fail_desc_t fail_desc;