]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
PGLog::rewind_divergent_log: unindex only works from tail, index() instead
authorSamuel Just <sam.just@inktank.com>
Mon, 22 Jul 2013 20:46:10 +0000 (13:46 -0700)
committerSamuel Just <sam.just@inktank.com>
Mon, 22 Jul 2013 22:06:02 +0000 (15:06 -0700)
Fixes: #5714
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/osd/PGLog.cc

index 6ba08362dadde6e1fd26172b70c4ff142300476d..2f2c83757db5575960e8ac320ffdd63aa6a4b6eb 100644 (file)
@@ -375,7 +375,6 @@ void PGLog::rewind_divergent_log(ObjectStore::Transaction& t, eversion_t newhead
     }
     assert(p->version > newhead);
     dout(10) << "rewind_divergent_log future divergent " << *p << dendl;
-    log.unindex(*p);
   }
 
   log.head = newhead;
@@ -383,6 +382,7 @@ void PGLog::rewind_divergent_log(ObjectStore::Transaction& t, eversion_t newhead
   if (info.last_complete > newhead)
     info.last_complete = newhead;
 
+  log.index();
   for (list<pg_log_entry_t>::iterator d = divergent.begin(); d != divergent.end(); ++d)
     merge_old_entry(t, *d, info, remove_snap);