ceph-dencoder: add RGWRealm support.

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
This commit is contained in:
yuliyang 2018-11-12 20:54:38 +08:00
parent b4aa2af446
commit 6fb5e7b243
3 changed files with 18 additions and 0 deletions

View File

@ -456,6 +456,20 @@ void RGWZone::generate_test_instances(list<RGWZone*> &o)
o.push_back(new RGWZone);
}
void RGWRealm::generate_test_instances(list<RGWRealm*> &o)
{
RGWRealm *z = new RGWRealm;
o.push_back(z);
o.push_back(new RGWRealm);
}
void RGWPeriod::generate_test_instances(list<RGWPeriod*> &o)
{
RGWPeriod *z = new RGWPeriod;
o.push_back(z);
o.push_back(new RGWPeriod);
}
void RGWZoneParams::generate_test_instances(list<RGWZoneParams*> &o)
{
o.push_back(new RGWZoneParams);

View File

@ -773,6 +773,7 @@ public:
void dump(Formatter *f) const;
void decode_json(JSONObj *obj);
static void generate_test_instances(list<RGWRealm*>& o);
const std::string& get_current_period() const {
return current_period;
@ -971,6 +972,7 @@ public:
}
void dump(Formatter *f) const;
void decode_json(JSONObj *obj);
static void generate_test_instances(list<RGWPeriod*>& o);
static std::string get_staging_id(const std::string& realm_id) {
return realm_id + ":staging";

View File

@ -346,6 +346,8 @@ TYPE(RGWObjManifest)
TYPE(RGWZoneParams)
TYPE(RGWZone)
TYPE(RGWZoneGroup)
TYPE(RGWRealm)
TYPE(RGWPeriod)
#include "rgw/rgw_acl.h"
TYPE(ACLPermission)