case OPT_REALM_GET:
{
RGWRealm realm(realm_id, realm_name);
-#if 0
- if (
- cerr << "missing realm name or id" << std::endl;
- return -EINVAL;
- }
-#endif
int ret = realm.init(g_ceph_context, store);
if (ret < 0) {
if (ret == -ENOENT && realm_name.empty() && realm_id.empty()) {
if (!setup_obj)
return 0;
- if (id.empty() || realm_id.empty()) {
+ if (id.empty()) {
RGWRealm realm(realm_id, realm_name);
int ret = realm.init(cct, store);
if (ret < 0) {
const string RGWPeriod::get_period_oid_prefix()
{
- return get_info_oid_prefix() + realm_id + "." + id;
+ return get_info_oid_prefix() + id;
}
const string RGWPeriod::get_period_oid()
rgw_bucket pool(pool_name.c_str());
std::ostringstream oss;
- oss << get_info_oid_prefix() << realm_id << "." << id << "." << epoch;
+ oss << get_info_oid_prefix() << id << "." << epoch;
string oid = oss.str();
bufferlist bl;
::encode(*this, bl);