]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: do not send_pg_creates with stale info 17191/head
authorKefu Chai <kchai@redhat.com>
Thu, 17 Aug 2017 11:01:40 +0000 (19:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 23 Aug 2017 13:03:00 +0000 (21:03 +0800)
commitcdc20ed291b998293384a4ba480bdd69d2093172
tree238c811839c05f3d4b144cd7a3e8034dbb6cdd28
parent0bd2a07b18edbe5091ddd2a36a057cc7ad68186c
mon/OSDMonitor: do not send_pg_creates with stale info

we reset the "creating_pgs" with the newly accepted paxos proposal, but
the creating_pgs_by_osd_epoch is out-of-sync with the new creating_pgs.
so we are at risk of using stale creating_pgs_by_osd_epoch along with
the new creating_pgs.pgs. to avoid this racing, we need to check the
creating_pgs_epoch before sending pg-creates using
creating_pgs_by_osd_epoch.

Fixes: http://tracker.ceph.com/issues/20785
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 689cf03f5515bb116ddf3966ef57550baf97eee9)
src/mon/OSDMonitor.cc
src/osd/OSDMapMapping.h