]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
objecter: don't resend linger ops unnecessarily
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 22 Feb 2013 07:31:21 +0000 (23:31 -0800)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 22 Feb 2013 07:33:46 +0000 (23:33 -0800)
commit3105034067dd4afba6ebaa9e30c6782854c9d1ad
tree8d54d82dfec1803f0262c42b2c48562a769eb81e
parent15bb9ba9fbb4185708399ed6deee070d888ef6d2
objecter: don't resend linger ops unnecessarily

recalc_linger_op_target() was checking and then setting
linger_op->pgid and linger_op->active, but these were only set by
recalc_linger_op_target(). This was only called by handle_osd_map(),
so the first osdmap after a watch was established would cause a resend
of the watch. Analogous to the normal Op, set this information by
calling recalc_linger_op_target in send_linger().

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/osdc/Objecter.cc