From: Sage Weil Date: Mon, 13 Feb 2017 16:51:51 +0000 (-0500) Subject: osd: drop pg_op_must_wait check X-Git-Tag: v12.0.1~381^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3d296a31140407cdd33e5fbadf4afaef243f3976;p=ceph.git osd: drop pg_op_must_wait check This made us wait if the snapid != CEPH_NOSNAP and there were any missing objects at all. Objecter can't submit such ops, and we're dropping support for listing at a specific snap anyway. Signed-off-by: Sage Weil --- diff --git a/src/osd/PrimaryLogPG.cc b/src/osd/PrimaryLogPG.cc index 977a0dbca8d3..006f5d5fd13c 100644 --- a/src/osd/PrimaryLogPG.cc +++ b/src/osd/PrimaryLogPG.cc @@ -1022,21 +1022,6 @@ int PrimaryLogPG::do_command( // ========================================================== -bool PrimaryLogPG::pg_op_must_wait(MOSDOp *op) -{ - if (pg_log.get_missing().get_items().empty()) - return false; - for (vector::iterator p = op->ops.begin(); p != op->ops.end(); ++p) { - if (p->op.op == CEPH_OSD_OP_PGLS || p->op.op == CEPH_OSD_OP_PGNLS || - p->op.op == CEPH_OSD_OP_PGLS_FILTER || p->op.op == CEPH_OSD_OP_PGNLS_FILTER) { - if (op->get_snapid() != CEPH_NOSNAP) { - return true; - } - } - } - return false; -} - void PrimaryLogPG::do_pg_op(OpRequestRef op) { MOSDOp *m = static_cast(op->get_req()); @@ -1825,10 +1810,6 @@ void PrimaryLogPG::do_op(OpRequestRef& op) } if (op->includes_pg_op()) { - if (pg_op_must_wait(m)) { - wait_for_all_missing(op); - return; - } return do_pg_op(op); } diff --git a/src/osd/PrimaryLogPG.h b/src/osd/PrimaryLogPG.h index 69aa55d1d5f1..b4db68fd148f 100644 --- a/src/osd/PrimaryLogPG.h +++ b/src/osd/PrimaryLogPG.h @@ -1354,7 +1354,6 @@ public: void do_op(OpRequestRef& op) override; void record_write_error(OpRequestRef op, const hobject_t &soid, MOSDOpReply *orig_reply, int r); - bool pg_op_must_wait(MOSDOp *op); void do_pg_op(OpRequestRef op); void do_sub_op(OpRequestRef op) override; void do_sub_op_reply(OpRequestRef op) override;