From 1addadc40a726cb70beb9865e951d5e7a03a2a5f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 20 Dec 2016 15:42:05 -0500 Subject: [PATCH] osd: we can discard "replay" ops Signed-off-by: Sage Weil --- src/osd/OSD.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 4f430384c5d..3927929609a 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; -- 2.47.3