]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/osd: drop redundant code
authorKefu Chai <tchaikov@gmail.com>
Sat, 1 Oct 2022 10:03:30 +0000 (18:03 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sat, 1 Oct 2022 10:03:30 +0000 (18:03 +0800)
this change is a cleanup.

we already update `superblock` with the latest `boost_epoch` and
osdmap's epoch in `OSD::handle_osd_map()`, and `committed_osd_maps()` is
called at end of this function. `shutdown()` is called when we marked
down and stop by the monitor in `committed_osd_maps()`. so these
assignment statements are noops. instead, we should stop the whole osd
service. let's leave it for another commit.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/crimson/osd/osd.cc

index d52ef08717c1e45fdec9e8ee2ea9cabd5ea52ced..9af4699dbf47d9e515eb380e1e04669f71fda1e7 100644 (file)
@@ -1179,8 +1179,6 @@ seastar::future<> OSD::restart()
 seastar::future<> OSD::shutdown()
 {
   // TODO
-  superblock.mounted = boot_epoch;
-  superblock.clean_thru = osdmap->get_epoch();
   return seastar::now();
 }