]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: fix osdmap update during osd start
authorYingxin Cheng <yingxin.cheng@intel.com>
Tue, 25 Feb 2020 05:21:55 +0000 (13:21 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Tue, 25 Feb 2020 07:48:08 +0000 (15:48 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/osd/osd.cc

index b21a2041dce9b65e606153f9a5fd82034bc6c504..3d2c91bbe1d17f51019b05ae92b33c7524703cec 100644 (file)
@@ -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();