From: Sage Weil Date: Tue, 20 Dec 2016 20:42:05 +0000 (-0500) Subject: osd: we can discard "replay" ops X-Git-Tag: v12.0.0~334^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1addadc40a726cb70beb9865e951d5e7a03a2a5f;p=ceph.git osd: we can discard "replay" ops Signed-off-by: Sage Weil --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 4f430384c5dc..3927929609ac 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -8860,10 +8860,8 @@ void OSD::handle_replica_op(OpRequestRef& op, OSDMapRef& osdmap) bool OSD::op_is_discardable(MOSDOp *op) { // drop client request if they are not connected and can't get the - // reply anyway. unless this is a replayed op, in which case we - // want to do what we can to apply it. - if (!op->get_connection()->is_connected() && - op->get_version().version == 0) { + // reply anyway. + if (!op->get_connection()->is_connected()) { return true; } return false;