From: Samuel Just Date: Tue, 4 Dec 2012 19:36:58 +0000 (-0800) Subject: PG: remove last_epoch_started asserts in proc_primary_info X-Git-Tag: v0.55.1~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fc58299eea15782f1f4ce7f7788a6c89be2aa188;p=ceph.git PG: remove last_epoch_started asserts in proc_primary_info 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 Reviewed-by: Greg Farnum (cherry picked from commit 0756052cff542ab02d653b40c37a645b395f31b3) --- diff --git a/src/osd/PG.cc b/src/osd/PG.cc index b81bfed36f4a..93f1e919ba80 100644 --- a/src/osd/PG.cc +++ b/src/osd/PG.cc @@ -4530,10 +4530,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 p;