From: Samuel Just Date: Tue, 15 Apr 2014 19:55:47 +0000 (-0700) Subject: Objecter::_op_submit: only replace the tid if it's 0 X-Git-Tag: v0.81~23^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1799%2Fhead;p=ceph.git Objecter::_op_submit: only replace the tid if it's 0 Otherwise, redirected ops will suddenly have a different tid and will become uncancelable. Fixes: #7588 Signed-off-by: Samuel Just --- diff --git a/src/osdc/Objecter.cc b/src/osdc/Objecter.cc index 51b95f288b77..1166651de239 100644 --- a/src/osdc/Objecter.cc +++ b/src/osdc/Objecter.cc @@ -1243,9 +1243,11 @@ ceph_tid_t Objecter::op_submit(Op *op) ceph_tid_t Objecter::_op_submit(Op *op) { - // pick tid - ceph_tid_t mytid = ++last_tid; - op->tid = mytid; + // pick tid if we haven't got one yet + if (op->tid == ceph_tid_t(0)) { + ceph_tid_t mytid = ++last_tid; + op->tid = mytid; + } assert(client_inc >= 0); // pick target