]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: Simplify blocklist tracking and interface
authorGreg Farnum <gfarnum@redhat.com>
Mon, 1 Nov 2021 23:52:53 +0000 (23:52 +0000)
committerGreg Farnum <gfarnum@redhat.com>
Tue, 31 May 2022 23:18:15 +0000 (23:18 +0000)
commit4ac8d58b0d27888c30843a239ca5e9e8f659c805
treee18e3160498f3d1a42a8f89fbca5c16dbddd9dc2
parenteeaa9921951366ec96de45f7ca270cfee9d3e82d
client: Simplify blocklist tracking and interface

I'm not sure if the blocklist events tracking in Client.cc was ever
the simplest way to track that state, but it definitely isn't now. We
can just hand our addr_vec to the OSDMap and ask it -- it handles
version compatibility issues and, happily, means the Client doesn't
need to learn to deal with ranges directly.

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 5f57daedc9550aaeb8b55e2c8dc71b6f27372e84)
src/client/Client.cc