]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
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)
commitea4488344aaef810b43f6a4bd54cf9cf475a4451
tree1776866ebbf409a735726d0f1e17a426d55aaa2e
parent728492c993f8ad94de176dc6dc4407f6f5aa8096
crimson/osd: drop redundant code

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