) {
return read_log_and_missing_crimson(
store, ch, info,
- log, missing, pgmeta_oid,
- this);
+ log, (pg_log_debug ? &log_keys_debug : nullptr),
+ missing, pgmeta_oid, this);
}
template <typename missing_type>
crimson::os::CollectionRef ch;
const pg_info_t &info;
IndexedLog &log;
+ std::set<std::string>* log_keys_debug = NULL;
missing_type &missing;
ghobject_t pgmeta_oid;
const DoutPrefixProvider *dpp;
ceph_assert(last_e.version.epoch <= e.version.epoch);
}
entries.push_back(e);
+ if (log_keys_debug)
+ log_keys_debug->insert(e.get_key_name());
}
}
crimson::os::CollectionRef ch,
const pg_info_t &info,
IndexedLog &log,
+ std::set<std::string>* log_keys_debug,
missing_type &missing,
ghobject_t pgmeta_oid,
const DoutPrefixProvider *dpp = nullptr
<< ch->get_cid()
<< " " << pgmeta_oid << dendl;
return (new FuturizedStoreLogReader<missing_type>{
- store, ch, info, log, missing, pgmeta_oid, dpp})->start();
+ store, ch, info, log, log_keys_debug,
+ missing, pgmeta_oid, dpp})->start();
}
#endif