]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: update creating epoch if target osd changed 14386/head
authorKefu Chai <kchai@redhat.com>
Fri, 7 Apr 2017 07:28:37 +0000 (15:28 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 7 Apr 2017 07:28:55 +0000 (15:28 +0800)
commit65d83f4a2a9304f77c78bb34344709e6a3fc33d5
treeb6f640a34b4ab2fd6cfda68190035207b36829a5
parent57b45024f605203cdfc0a8125b287b62e2789c23
mon/OSDMonitor: update creating epoch if target osd changed

there is chance that the acting_primary of a PG being created changes
across osdmap updates, in that case we should update the new creating_pgs
with the mapping's epoch, not the stale one when the PG was originally
created. otherwise the new target OSD won't get the pg-create message.

Fixes: http://tracker.ceph.com/issues/19515
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/OSDMonitor.cc