]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: set quota when converting regionmap
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 15 Feb 2016 23:40:37 +0000 (15:40 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 18 Feb 2016 21:56:51 +0000 (13:56 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h

index bc2b21668e07222a02ce3375bbe9f17bc108b863..2df09d776f426fec02654cf8dc981b116bb7fc7a 100644 (file)
@@ -3253,7 +3253,8 @@ int RGWRados::convert_regionmap()
     }
   }
 
-  #warning need to update quota
+  current_period.set_user_quota(zonegroupmap.user_quota);
+  current_period.set_bucket_quota(zonegroupmap.bucket_quota);
 
   return 0;
 }
index fe88933da688056e28c38cb33dee3ba35f63a77a..f2773838adf1349698f59e996e002dd1bacc1eaa 100644 (file)
@@ -1409,6 +1409,14 @@ public:
   const string& get_latest_epoch_oid();
   const string& get_info_oid_prefix();
 
+  void set_user_quota(RGWQuotaInfo& user_quota) {
+    period_config.user_quota = user_quota;
+  }
+
+  void set_bucket_quota(RGWQuotaInfo& bucket_quota) {
+    period_config.bucket_quota = bucket_quota;
+  }
+
   void set_id(const string& id) {
     this->id = id;
     period_map.id = id;