uint32_t new_crush_barrier,
int32_t old_crush_member,
int32_t new_crush_member,
+ bool old_allow_ec_optimizations,
+ bool new_allow_ec_optimizations,
pg_t pgid) {
return old_acting_primary != new_acting_primary ||
new_acting != old_acting ||
old_crush_count != new_crush_count ||
old_crush_target != new_crush_target ||
old_crush_barrier != new_crush_barrier ||
- old_crush_member != new_crush_member;
+ old_crush_member != new_crush_member ||
+ old_allow_ec_optimizations != new_allow_ec_optimizations;
}
bool PastIntervals::is_new_interval(
plast->peering_crush_bucket_target, pi->peering_crush_bucket_target,
plast->peering_crush_bucket_barrier, pi->peering_crush_bucket_barrier,
plast->peering_crush_mandatory_member, pi->peering_crush_mandatory_member,
+ plast->allows_ecoptimizations(), pi->allows_ecoptimizations(),
pgid);
}
uint32_t new_crush_barrier,
int32_t old_crush_member,
int32_t new_crush_member,
+ bool old_allow_ec_optimizations,
+ bool new_allow_ec_optimizations,
pg_t pgid
);
pi->peering_crush_bucket_barrier,
t->peering_crush_mandatory_member,
pi->peering_crush_mandatory_member,
+ t->allows_ecoptimizations,
+ pi->allows_ecoptimizations(),
prev_pgid)) {
force_resend = true;
}
t->peering_crush_bucket_target = pi->peering_crush_bucket_target;
t->peering_crush_bucket_barrier = pi->peering_crush_bucket_barrier;
t->peering_crush_mandatory_member = pi->peering_crush_mandatory_member;
+ t->allows_ecoptimizations = pi->allows_ecoptimizations();
ldout(cct, 10) << __func__ << " "
<< " raw pgid " << pgid << " -> actual " << t->actual_pgid
<< " acting " << t->acting
int min_size = -1; ///< the min size of the pool when were were last mapped
bool sort_bitwise = false; ///< whether the hobject_t sort order is bitwise
bool recovery_deletes = false; ///< whether the deletes are performed during recovery instead of peering
+ bool allows_ecoptimizations = false; ///< whether EC plugin optimizations are enabled.
uint32_t peering_crush_bucket_count = 0;
uint32_t peering_crush_bucket_target = 0;
uint32_t peering_crush_bucket_barrier = 0;