]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog::rewind_divergent_log: fix rollback_info_trimmed_to before index() 8849/head
authorSamuel Just <sjust@redhat.com>
Thu, 3 Dec 2015 01:20:19 +0000 (17:20 -0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 30 Apr 2016 17:00:32 +0000 (19:00 +0200)
Fixes: #13965
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 053ee919059b2671d40110e8dff8615dc13d34e0)

src/osd/PGLog.cc

index 7c11aa90f8a1391961a04178790cece489acd381..8521af9eba53b20d2686a04274ccd2d9e52bba5f 100644 (file)
@@ -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;