Skip to content

Commit

Permalink
PGLog::rewind_divergent_log: fix rollback_info_trimmed_to before index()
Browse files Browse the repository at this point in the history
Fixes: #13965
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 053ee91)
  • Loading branch information
athanatos authored and smithfarm committed Apr 30, 2016
1 parent e79162d commit d96086a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/osd/PGLog.cc
Expand Up @@ -526,6 +526,9 @@ void PGLog::rewind_divergent_log(ObjectStore::Transaction& t, eversion_t newhead
if (info.last_complete > newhead)
info.last_complete = newhead;

if (log.rollback_info_trimmed_to > newhead)
log.rollback_info_trimmed_to = newhead;

log.index();

map<eversion_t, hobject_t> new_priors;
Expand Down

0 comments on commit d96086a

Please sign in to comment.