]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: we can discard "replay" ops
authorSage Weil <sage@redhat.com>
Tue, 20 Dec 2016 20:42:05 +0000 (15:42 -0500)
committerSage Weil <sage@redhat.com>
Thu, 29 Dec 2016 15:30:07 +0000 (10:30 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc

index 4f430384c5dc2caaa1b086f1b7ec6cdf5bbb2a93..3927929609acad455677548689d598c0be7c5ce4 100644 (file)
@@ -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;