return 0;
}
-int RGWPeriod::set_latest_epoch(const epoch_t& epoch)
+int RGWPeriod::set_latest_epoch(epoch_t epoch)
{
string pool_name = get_pool_name(cct);
string oid = get_period_oid_prefix() + get_latest_epoch_oid();
return ret;
return 0;
-
-
}
+
int RGWPeriod::delete_obj()
{
string pool_name = get_pool_name(cct);
int read_info();
int read_latest_epoch(RGWPeriodLatestEpochInfo& epoch_info);
int use_latest_epoch();
- int set_latest_epoch(const epoch_t& epoch);
int use_current_period();
const string get_period_oid();
const string& get_latest_epoch_oid();
const string& get_info_oid_prefix();
+ void set_id(const string& id) {
+ this->id = id;
+ period_map.id = id;
+ }
+ void set_epoch(epoch_t epoch) { this->epoch = epoch; }
+
void set_predecessor(const string& predecessor)
{
predecessor_uuid = predecessor;
bool is_single_zonegroup(CephContext *cct, RGWRados *store);
int get_latest_epoch(epoch_t& epoch);
+ int set_latest_epoch(epoch_t epoch);
+
int init(CephContext *_cct, RGWRados *_store, const string &period_realm_id, const string &period_realm_name = "",
bool setup_obj = true);
int init(CephContext *_cct, RGWRados *_store, bool setup_obj = true);