return current_period.get_config().user_quota;
}
+ const string& get_current_period_id() {
+ return current_period.get_id();
+ }
// pulls missing periods for period_history
std::unique_ptr<RGWPeriodPuller> period_puller;
// maintains a connected history of periods
}
if (period.empty()) {
- ldout(s->cct, 5) << "Missing period id" << dendl;
- http_ret = -EINVAL;
- return;
+ ldout(s->cct, 5) << "Missing period id trying to use current" << dendl;
+ period = store->get_current_period_id();
+ if (period.empty()) {
+ ldout(s->cct, 5) << "Missing period id" << dendl;
+ http_ret = -EINVAL;
+ return;
+ }
}
+
RGWMetadataLog meta_log{s->cct, store, period};
meta_log.init_list_entries(shard_id, ut_st, ut_et, marker, &handle);
locker_id = s->info.args.get("locker-id");
zone_id = s->info.args.get("zone-id");
+ if (period.empty()) {
+ ldout(s->cct, 5) << "Missing period id trying to use current" << dendl;
+ period = store->get_current_period_id();
+ }
+
if (period.empty() ||
shard_id_str.empty() ||
(duration_str.empty()) ||
locker_id = s->info.args.get("locker-id");
zone_id = s->info.args.get("zone-id");
+ if (period.empty()) {
+ ldout(s->cct, 5) << "Missing period id trying to use current" << dendl;
+ period = store->get_current_period_id();
+ }
+
if (period.empty() ||
shard_id_str.empty() ||
locker_id.empty() ||