]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: Server: Simplify apply_blocklist and usage of the OSDMap's blocklist
authorGreg Farnum <gfarnum@redhat.com>
Tue, 2 Nov 2021 00:34:34 +0000 (00:34 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Wed, 13 Apr 2022 00:14:15 +0000 (00:14 +0000)
commit79f7576401cc9d857f84396314d7476336c0e271
treeae41be6c30751a02dc82364815b0ef5eda6e258e
parent5f57daedc9550aaeb8b55e2c8dc71b6f27372e84
mds: Server: Simplify apply_blocklist and usage of the OSDMap's blocklist

This previoulsly re-implemented a bunch of the OSDMap::is_blocklisted()
function, and wasn't actually any faster to run -- the list of new blocklists
may be smaller than the full set, but OSDMap::blocklist is an unordered_map
of constant lookup time so it shouldn't slow things down. More importantly,
this is much simpler, less likely to be buggy from duplicate code, and lets
the MDS off the hook for dealing with range blocklisting.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
src/mds/MDSRank.cc
src/mds/Server.cc
src/mds/Server.h