]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/ReplicatedBackend: no empty MOSDSubOps anymore
authorSage Weil <sage@redhat.com>
Tue, 28 Mar 2017 18:11:16 +0000 (14:11 -0400)
committerSage Weil <sage@redhat.com>
Fri, 31 Mar 2017 18:42:12 +0000 (14:42 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/ReplicatedBackend.cc

index 609dc94af2cff51e82213fa9c4f897dab324b15e..a04f140f9f47bf01c99b846a16e722d78e11bc94 100644 (file)
@@ -209,8 +209,7 @@ bool ReplicatedBackend::handle_message(
   case MSG_OSD_SUBOP: {
     const MOSDSubOp *m = static_cast<const MOSDSubOp*>(op->get_req());
     if (m->ops.size() == 0) {
-      sub_op_modify(op);
-      return true;
+      assert(0);
     }
     break;
   }