{
dout(15) << __func__ << dendl;
ceph_assert(m_scrubber.is_primary());
- ceph_assert(this_chunk->authoritative_set.empty() &&
+ ceph_assert(this_chunk->all_chunk_objects.empty() &&
"the scrubber-backend should be empty");
if (g_conf()->subsys.should_gather<ceph_subsys_osd, 15>()) {
for (const auto& map : this_chunk->received_maps) {
std::transform(map.second.objects.begin(),
map.second.objects.end(),
- std::inserter(this_chunk->authoritative_set,
- this_chunk->authoritative_set.end()),
+ std::inserter(this_chunk->all_chunk_objects,
+ this_chunk->all_chunk_objects.end()),
[](const auto& i) { return i.first; });
}
}
// nothing to fix. Just count OMAP stats
// (temporary code - to be removed once scrub_compare_maps()
// is modified to process object-by-object)
- for (const auto& ho : this_chunk->authoritative_set) {
+ for (const auto& ho : this_chunk->all_chunk_objects) {
const auto it = my_map().objects.find(ho);
// all objects in the authoritative set should be there, in the
// map of the sole OSD
void ScrubBackend::compare_smaps()
{
dout(10) << __func__
- << ": authoritative-set #: " << this_chunk->authoritative_set.size()
+ << ": authoritative-set #: " << this_chunk->all_chunk_objects.size()
<< dendl;
- std::for_each(this_chunk->authoritative_set.begin(),
- this_chunk->authoritative_set.end(),
+ std::for_each(this_chunk->all_chunk_objects.begin(),
+ this_chunk->all_chunk_objects.end(),
[this](const auto& ho) {
if (auto maybe_clust_err = compare_obj_in_maps(ho);
maybe_clust_err) {
std::map<pg_shard_t, ScrubMap> received_maps;
/// a collection of all objs mentioned in the maps
- std::set<hobject_t> authoritative_set;
+ std::set<hobject_t> all_chunk_objects;
utime_t started{ceph_clock_now()};
/**
* merge_to_authoritative_set() updates
* - this_chunk->maps[from] with the replicas' scrub-maps;
- * - this_chunk->authoritative_set as a union of all the maps' objects;
+ * - this_chunk->all_chunk_objects as a union of all the maps' objects;
*/
void merge_to_authoritative_set();