]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
objecter: set op->paused in recalc_op_target(), resend in not paused
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 7 Nov 2013 00:15:47 +0000 (16:15 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Thu, 7 Nov 2013 00:49:43 +0000 (16:49 -0800)
commit98ab7d64a191371fa39d840c5f8e91cbaaa1d7b7
treeb8a79fe8ead8ca26c729403ce2ab1aa4ca53b142
parentc5c399d327cfc0d232d9ec7d49ababa914d0b21a
objecter: set op->paused in recalc_op_target(), resend in not paused

When going through scan_requests() in handle_osd_map() we need to make
sure that if an op should not be paused anymore then set it on the op
itself, and return NEED_RESEND. Otherwise we're going to miss reset of
the full flag.
Also in handle_osd_map(), make sure that op shouldn't be paused before
sending it. There's a lot of cleanup around that area that we should
probably be doing, make the code much more tight.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/osdc/Objecter.cc