From: Sage Weil Date: Tue, 28 Feb 2017 02:42:52 +0000 (-0600) Subject: osd: min_epoch for MOSDPGScan X-Git-Tag: v12.0.3~80^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=024235fcd8a42d260b01f4e005be4247e8a3cfbe;p=ceph.git osd: min_epoch for MOSDPGScan Signed-off-by: Sage Weil --- diff --git a/src/messages/MOSDPGScan.h b/src/messages/MOSDPGScan.h index e5c25caaa571..3c01b406fd85 100644 --- a/src/messages/MOSDPGScan.h +++ b/src/messages/MOSDPGScan.h @@ -44,6 +44,9 @@ public: epoch_t get_map_epoch() const override { return map_epoch; } + epoch_t get_min_epoch() const override { + return query_epoch; + } spg_t get_spg() const override { return pgid; } diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 085ec3eb99a7..85f5c97cbb65 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -11129,7 +11129,7 @@ uint64_t PrimaryLogPG::recover_backfill( dout(10) << " scanning peer osd." << bt << " from " << pbi.end << dendl; epoch_t e = get_osdmap()->get_epoch(); MOSDPGScan *m = new MOSDPGScan( - MOSDPGScan::OP_SCAN_GET_DIGEST, pg_whoami, e, e, + MOSDPGScan::OP_SCAN_GET_DIGEST, pg_whoami, e, last_peering_reset, spg_t(info.pgid.pgid, bt.shard), pbi.end, hobject_t()); osd->send_message_osd_cluster(bt.osd, m, get_osdmap()->get_epoch());