build_scrub_map will bail out if the pg changed. Discard the result in
that case since the primary will ignore it anyway.
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
build_scrub_map(map);
}
+ if (msg->map_epoch < info.history.same_acting_since) {
+ dout(10) << "replica_scrub discarding old replica_scrub result from "
+ << msg->map_epoch << " < " << info.history.same_acting_since << dendl;
+ return;
+ }
+
vector<OSDOp> scrub(1);
scrub[0].op.op = CEPH_OSD_OP_SCRUB_MAP;
sobject_t poid;