int file_fd = fd_none;
bool debug;
+bool force = false;
super_header sh;
uint64_t testalign;
divergent_priors_t &divergent,
pg_missing_t &missing)
{
- cout << __func__ << " info " << info << std::endl;
+ cout << __func__ << " epoch " << epoch << " info " << info << std::endl;
int ret = write_info(t, epoch, info, past_intervals);
if (ret)
return ret;
" some objects may be ignored due to a split" << std::endl;
}
}
+ if (ms.osdmap.get_epoch() < sb.oldest_map) {
+ cerr << "PG export's map " << ms.osdmap.get_epoch()
+ << " is older than OSD's oldest_map " << sb.oldest_map << std::endl;
+ if (!force) {
+ cerr << " pass --force to proceed anyway (with incomplete PastIntervals)"
+ << std::endl;
+ return -EINVAL;
+ }
+ }
// Make sure old_pg_num is 0 in the unusual case that OSDMap not in export
// nor can we find a local copy.
unsigned epoch = 0;
ghobject_t ghobj;
bool human_readable;
- bool force;
Formatter *formatter;
bool head;