objects only when it's not missing on the primary too
The issue was introduced by
60537bdd2f42fb87c9d4a8b62e9e722231a8842b
which didn't fix the issue it was supposed to because of the same error
this commit tries to fix.
Fixes: https://tracker-origin.ceph.com/issues/78676
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
trigger,
pg->get_recovery_backend()->push_delete(soid, need).then_interruptible(
[=, this] {
- if (pg->get_peering_state().get_pg_log().get_missing().is_missing(soid)) {
+ if (!pg->get_peering_state().get_pg_log().get_missing().is_missing(soid)) {
object_stat_sum_t stat_diff;
stat_diff.num_objects_recovered = 1;
on_global_recover(soid, stat_diff, true);