]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PGMonitor: always update pgmap with latest osdmap 14777/head
authorKefu Chai <kchai@redhat.com>
Tue, 25 Apr 2017 14:24:46 +0000 (22:24 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 25 Apr 2017 14:33:25 +0000 (22:33 +0800)
commit8b6821bd00ef6e3b016040b06d026c5c89d919db
tree4d4c85903e78fe8cd40229ac8943d2af90030b51
parentde36573fb21c629837260808d0a8a77d6577ea36
osd/PGMonitor: always update pgmap with latest osdmap

without this change, we always update the pgmap with the latest osdmap in
PGMonitor::check_osd_map(), but assign pending_inc.osdmap_epoch with the
epoch passed to PGMonitor::check_osd_map(), even if the osdmap could be
be much newer than "epoch". for example, we could end up with an
MOSDPGCreate with an ancient epoch, but carrying some creating pgs whose
pools do not exist in osdmap of that ancient epoch yet. this happens
when RetryCheckOSDMap is involved.

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