]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Tue, 31 May 2022 23:18:15 +0000 (23:18 +0000)
commit4a67150f42bab04096725a3b36e161c3b3b137ac
tree3c3404a1f8b12a620c0406f6a4b4a4eeedcf1b9b
parent4ac8d58b0d27888c30843a239ca5e9e8f659c805
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>
(cherry picked from commit 79f7576401cc9d857f84396314d7476336c0e271)
src/mds/MDSRank.cc
src/mds/Server.cc
src/mds/Server.h