]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: fix synchronise pgmap with others 14418/head
authorsongbaisen <song.baisen@zte.com.cn>
Mon, 10 Apr 2017 02:21:06 +0000 (02:21 +0000)
committersongbaisen <song.baisen@zte.com.cn>
Mon, 10 Apr 2017 03:15:24 +0000 (03:15 +0000)
commitba3c6a055d462895dad4ac5f61af43d7a373a20a
treebea81ea3476bfcf6df2c15d99c89be8fe0d67e30
parent0b61e113fdebd43a0d06d2c92b32df09fe96ac4e
mon: fix synchronise pgmap with others

leader mon down for a long time and then the local pgmap/osdmap was behind latest map a lot,
when it start and sync ,it will read full map from other mons;
if serveral osds/pgs were deleted during mon offline, these osds/pgs will be left over in pgmap until manully restart ceph-mon process

Solution:
reset pgmap before read pgmap full,make sure local maps are the same as the latest map

Signed-off-by: z09440 <zhao.mingyue@h3c.com>
Signed-off-by: song baisen <song.baisen@zte.com.cn>
src/mon/PGMonitor.cc