]> git.proxmox.com Git - ceph.git/blob - ceph/src/rgw/services/svc_quota.cc
import 15.2.0 Octopus source
[ceph.git] / ceph / src / rgw / services / svc_quota.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab ft=cpp
3
4 #include "svc_quota.h"
5 #include "svc_zone.h"
6
7 #include "rgw/rgw_zone.h"
8
9 const RGWQuotaInfo& RGWSI_Quota::get_bucket_quota() const
10 {
11 return zone_svc->get_current_period().get_config().bucket_quota;
12 }
13
14 const RGWQuotaInfo& RGWSI_Quota::get_user_quota() const
15 {
16 return zone_svc->get_current_period().get_config().user_quota;
17 }
18