]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rgw/rgw_user.h
update sources to v12.1.2
[ceph.git] / ceph / src / rgw / rgw_user.h
index 7a27d0e7007939118505ec36d690278c195e22bd..35738ce7d284b2a90ad8b4b9748832b16298f625 100644 (file)
@@ -48,6 +48,8 @@ struct RGWUID
 WRITE_CLASS_ENCODER(RGWUID)
 
 extern int rgw_user_sync_all_stats(RGWRados *store, const rgw_user& user_id);
+extern int rgw_user_get_all_buckets_stats(RGWRados *store, const rgw_user& user_id, map<string, cls_user_bucket_entry>&buckets_usage_map);
+
 /**
  * Get the anonymous (ie, unauthenticated) user info.
  */
@@ -248,10 +250,7 @@ struct RGWUserAdminOpState {
   }
 
   void set_user_email(std::string& email) {
-    if (email.empty())
-      return;
-
-    /* always lowercase email address */
+   /* always lowercase email address */
     boost::algorithm::to_lower(email);
     user_email = email;
     user_email_specified = true;