]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osdc/Objecter: _calc_target on all ops so that we notice splits 13534/head
authorSage Weil <sage@redhat.com>
Mon, 20 Feb 2017 19:26:42 +0000 (14:26 -0500)
committerSage Weil <sage@redhat.com>
Thu, 23 Feb 2017 15:29:42 +0000 (10:29 -0500)
commitbbd9f0f0b2277c6ba94bd78f828f90563547c360
tree116e726019c66d4e7cecb5a5b984f1df1ecf06df
parent71f5309fe70592e54a6ff3507faff34032edf955
osdc/Objecter: _calc_target on all ops so that we notice splits

We need to make sure we update the mapping and get an accurate actual_pgid
value by recalcuating the mapping on every map change.  Otherwise, we may
not notice a split (and subsequent actual_pgid change) and resend the same
op with a stale spg_t.  To fix this,

- _calc_target on need_resend
- update target regardless of current con

Signed-off-by: Sage Weil <sage@redhat.com>
src/osdc/Objecter.cc