]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog::rewind_divergent_log: fix rollback_info_trimmed_to before index() 6801/head
authorSamuel Just <sjust@redhat.com>
Thu, 3 Dec 2015 01:20:19 +0000 (17:20 -0800)
committerSamuel Just <sjust@redhat.com>
Thu, 3 Dec 2015 01:20:21 +0000 (17:20 -0800)
Fixes: #13965
Signed-off-by: Samuel Just <sjust@redhat.com>
src/osd/PGLog.cc

index 72520a771b688125db7180ebf35d67728c9a6be9..5a7f94537bad17b72a92f7986f6eb7e8f2759eeb 100644 (file)
@@ -524,6 +524,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;