]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson: consolidate the return paths of get_segment_manager() 68839/head
authorKefu Chai <k.chai@proxmox.com>
Mon, 11 May 2026 05:46:25 +0000 (13:46 +0800)
committerKefu Chai <k.chai@proxmox.com>
Tue, 12 May 2026 03:03:03 +0000 (11:03 +0800)
commit988b68995edd6d5c0da542a122b525c8aee92f24
tree0cfecda523165ecad47f67a7309f9c848e223192
parentf9acf620bb20f313a4a4dbca6f22fe3306ffc0be
crimson: consolidate the return paths of get_segment_manager()

before this change, two branches both return `BlockSegmentManager`,
which is redundant. in this change, consolidate them so that the
`HAVE_ZNS` path becomes an early return. this improves readability.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/crimson/os/seastore/segment_manager.cc