]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: adjust interfaces following rebase
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 11 Feb 2016 23:35:30 +0000 (15:35 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 21:03:33 +0000 (13:03 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_admin.cc
src/rgw/rgw_realm_reloader.cc

index 97a564c66695861e6073d541680cd5dbc7d4dbed..3e2be9a379564fa2816e7f1aea6158890cd5c540 100644 (file)
@@ -1490,12 +1490,12 @@ static int update_period(const string& realm_id, const string& realm_name,
   return 0;
 }
 
-static int init_bucket_for_sync(const string& bucket_name, string& bucket_id)
+static int init_bucket_for_sync(const string& tenant, const string& bucket_name, string& bucket_id)
 {
   RGWBucketInfo bucket_info;
   rgw_bucket bucket;
 
-  int ret = init_bucket(bucket_name, bucket_id, bucket_info, bucket);
+  int ret = init_bucket(tenant, bucket_name, bucket_id, bucket_info, bucket);
   if (ret == -ENOENT) {
     if (bucket_id.empty()) {
       cerr << "ERROR: bucket id specified" << std::endl;
@@ -4654,7 +4654,7 @@ next:
       cerr << "ERROR: bucket not specified" << std::endl;
       return EINVAL;
     }
-    int ret = init_bucket_for_sync(bucket_name, bucket_id);
+    int ret = init_bucket_for_sync(tenant, bucket_name, bucket_id);
     if (ret < 0) {
       return -ret;
     }
@@ -4681,7 +4681,7 @@ next:
       cerr << "ERROR: bucket not specified" << std::endl;
       return EINVAL;
     }
-    int ret = init_bucket_for_sync(bucket_name, bucket_id);
+    int ret = init_bucket_for_sync(tenant, bucket_name, bucket_id);
     if (ret < 0) {
       return -ret;
     }
@@ -4713,7 +4713,7 @@ next:
       cerr << "ERROR: bucket not specified" << std::endl;
       return EINVAL;
     }
-    int ret = init_bucket_for_sync(bucket_name, bucket_id);
+    int ret = init_bucket_for_sync(tenant, bucket_name, bucket_id);
     if (ret < 0) {
       return -ret;
     }
index f0d5771c338b7866252398a70188464fe442d99c..a565b09f7fba39ab1e70c019d24e3c12ad07ca54 100644 (file)
@@ -138,7 +138,7 @@ void RGWRealmReloader::reload()
   ldout(cct, 1) << "Finishing initialization of new store" << dendl;
   // finish initializing the new store
   ldout(cct, 1) << " - REST subsystem init" << dendl;
-  rgw_rest_init(cct, store->get_zonegroup());
+  rgw_rest_init(cct, store, store->get_zonegroup());
   ldout(cct, 1) << " - user subsystem init" << dendl;
   rgw_user_init(store);
   ldout(cct, 1) << " - user subsystem init" << dendl;