Make sure we record any rewind_divergent_log. In the activate case, this
will happen anyway, but mark it dirty here for correctness/completeness.
The merge_log case might be a bug.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
for (list<pg_log_entry_t>::iterator d = divergent.begin(); d != divergent.end(); d++)
merge_old_entry(t, *d);
+
+ dirty_info = true;
+ dirty_log = true;
}
void PG::merge_log(ObjectStore::Transaction& t,
// do we have divergent entries to throw out?
if (olog.head < log.head) {
rewind_divergent_log(t, olog.head);
+ changed = true;
}
// extend on head?