]> git-server-git.apps.pok.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)
committerSage Weil <sage@inktank.com>
Mon, 30 Dec 2013 16:49:21 +0000 (08:49 -0800)
commit7b229fca346b7ab60131b229591d35f63f64a6ad
treea3a61a7b4d61d319e65df6993d7756762005bc3a
parenta3fdfd77c953a8f9ace4991630599e60f56abc4a
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>
(cherry picked from commit 98ab7d64a191371fa39d840c5f8e91cbaaa1d7b7)
src/osdc/Objecter.cc