We have been setting it to the old head value. This is usually
harmless since the new head will virtually always be ahead of the
old head for claim_log_and_clear_rollback_info, but can cause trouble
in some edge cases.
Fixes: #9481
Backport: firefly
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit
0769310ccd4e0dceebd8ea601e8eb5c0928e0603)
assert(rollback_info_trimmed_to_riter == log.rbegin());
log = o.log;
- rollback_info_trimmed_to = head;
head = o.head;
+ rollback_info_trimmed_to = head;
tail = o.tail;
index();
}