return 0;
}
-int RGWPeriod::set_latest_epoch(epoch_t epoch)
+int RGWPeriod::set_latest_epoch(epoch_t epoch, bool exclusive)
{
string pool_name = get_pool_name(cct);
string oid = get_period_oid_prefix() + get_latest_epoch_oid();
::encode(info, bl);
- return rgw_put_system_obj(store, pool, oid, bl.c_str(), bl.length(), false, NULL, 0, NULL);
+ return rgw_put_system_obj(store, pool, oid, bl.c_str(), bl.length(),
+ exclusive, NULL, 0, NULL);
}
int RGWPeriod::delete_obj()
bool is_single_zonegroup(CephContext *cct, RGWRados *store);
int get_latest_epoch(epoch_t& epoch);
- int set_latest_epoch(epoch_t epoch);
+ int set_latest_epoch(epoch_t epoch, bool exclusive = false);
int init(CephContext *_cct, RGWRados *_store, const string &period_realm_id, const string &period_realm_name = "",
bool setup_obj = true);