From: Yingxin Cheng Date: Tue, 25 Feb 2020 05:21:55 +0000 (+0800) Subject: crimson/osd: fix osdmap update during osd start X-Git-Tag: v15.1.1~251^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=abac0f6c1b8b8945fd4a9acf59116bfc5b437022;p=ceph-ci.git crimson/osd: fix osdmap update during osd start Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/osd/osd.cc b/src/crimson/osd/osd.cc index b21a2041dce..3d2c91bbe1d 100644 --- a/src/crimson/osd/osd.cc +++ b/src/crimson/osd/osd.cc @@ -213,7 +213,7 @@ seastar::future<> OSD::start() superblock = std::move(sb); return get_map(superblock.current_epoch); }).then([this](cached_map_t&& map) { - shard_services.update_map(osdmap); + shard_services.update_map(map); osdmap_gate.got_map(map->get_epoch()); osdmap = std::move(map); return load_pgs();