]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: update op_target_t::paused in _calc_target
authorrunsisi <luo.runbing@zte.com.cn>
Sat, 24 Nov 2018 09:22:52 +0000 (17:22 +0800)
committerAshish Singh <assingh@redhat.com>
Fri, 28 Dec 2018 17:03:28 +0000 (22:33 +0530)
commitae15fbef7a99c4dffdce9f7cac238de378e24925
tree5c7a632299c4b627caad71ce7c80001253a5116f
parent7f094a2228ed656068da3815865f7649ac4d2cd8
osdc/Objecter: update op_target_t::paused in _calc_target

LingerOp::target.paused has no chance to be touched by anyone (see Objecter::_send_linger),
then the following bug exists:

1. ceph osd pause
2. rados watch -p pool oid
3. ceph osd unpause
3. the linger op will be in a lost state, i.e., osd op cancelled and the linger
   op will not be resent

Fixes: http://tracker.ceph.com/issues/37398
Signed-off-by: runsisi <luo.runbing@zte.com.cn>
(cherry picked from commit e7a23d86e0b90cfd91e7126f958c0501d537e280)
src/osdc/Objecter.cc