]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: correct the boot msg epoch in _send_boot() 12623/head
authorMingxin Liu <mingxin@xsky.com>
Mon, 19 Dec 2016 08:53:41 +0000 (16:53 +0800)
committerMingxin Liu <mingxin@xsky.com>
Thu, 22 Dec 2016 12:58:55 +0000 (20:58 +0800)
commitf5aa393b468024cb8067f7d98d5ea6790d6dfc50
tree46e2181630d86783ecff666dee542efa97846896
parente293d40e6a2fc9e7ea4effe11ca0487724b1f630
osd: correct the boot msg epoch in _send_boot()

use get_osdmap_epoch() maybe better than superblock's current_epoch, because
_send_boot() might happen when committing new osdmap, superblock.current_epoch
prior to osdmap.epoch, _committed_osd_map() may modify some osd metadata thereafter,
thus, break the consistency between epoch and metadata in boot msg.

Signed-off-by: Mingxin Liu <mingxin@xsky.com>
src/messages/MOSDBoot.h
src/osd/OSD.cc