]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
PG: remove last_epoch_started asserts in proc_primary_info
authorSamuel Just <sam.just@inktank.com>
Tue, 4 Dec 2012 19:36:58 +0000 (11:36 -0800)
committerSamuel Just <sam.just@inktank.com>
Tue, 4 Dec 2012 19:41:05 +0000 (11:41 -0800)
These asserts are valid for a uniform cluster, but they won't hold
for a replica running a version without the info.last_epoch_started
patch.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/osd/PG.cc

index 617ba9e250f023f5083689dc393eb1e8dc89f96b..8c4c29ba7e75b5dbf506b900ae31b2bc55884bd8 100644 (file)
@@ -4531,10 +4531,6 @@ void PG::proc_primary_info(ObjectStore::Transaction &t, const pg_info_t &oinfo)
     dirty_info = true;
   osd->reg_last_pg_scrub(info.pgid, info.history.last_scrub_stamp);
 
-  assert(oinfo.last_epoch_started == info.last_epoch_started);
-  assert(info.history.last_epoch_started == oinfo.last_epoch_started);
-  assert(oinfo.history.last_epoch_started == oinfo.last_epoch_started);
-
   // Handle changes to purged_snaps ONLY IF we have caught up
   if (last_complete_ondisk.epoch >= info.history.last_epoch_started) {
     interval_set<snapid_t> p;