Signed-off-by: Neha Ojha <nojha@redhat.com>
(cherry picked from commit
de42fee0dff299f4d0377961d05e02fd8f49f21b)
Conflicts:
src/osd/PGLog.cc: The async recovery feature is not present
in luminous. Remove async recovery requirements from this commit.
dout(10) << __func__ << " proposed trim_to = " << trim_to << dendl;
// trim?
if (trim_to > log.tail) {
+ dout(10) << __func__ << " missing = " << missing.num_missing() << dendl;
// Don't assert for backfill_targets
- if (transaction_applied)
+ // or whenever there are missing items
+ if (transaction_applied && (missing.num_missing() == 0))
assert(trim_to <= info.last_complete);
dout(10) << "trim " << log << " to " << trim_to << dendl;