Otherwise, redirected ops will suddenly have a different tid
and will become uncancelable.
Fixes: #7588
Signed-off-by: Samuel Just <sam.just@inktank.com>
(cherry picked from commit
76568aa0db4e16ac1af8fe6405edade1e61cbc81)
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