]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: do not send_pg_creates with stale info 17065/head
authorKefu Chai <kchai@redhat.com>
Thu, 17 Aug 2017 11:01:40 +0000 (19:01 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 20 Aug 2017 05:32:44 +0000 (13:32 +0800)
commit689cf03f5515bb116ddf3966ef57550baf97eee9
tree4c2405e4052141d4a9de791cc8c31fa1e18df2f6
parent5b7c65d904c22ae2e652b2b9199b8633e71fbc49
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>
src/mon/OSDMonitor.cc
src/osd/OSDMapMapping.h