]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cls/rbd: improve efficiency of mirror image status queries
authorJason Dillaman <dillaman@redhat.com>
Mon, 25 Nov 2019 19:28:57 +0000 (14:28 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 25 Nov 2019 19:28:57 +0000 (14:28 -0500)
commit3ce8543c78b7421f3297bcd980631e9f51d332e1
tree928ad7bf570bda7ef312b5ec237d27654b5f071a
parent67c96be4f6fca0ff48e8d152452d9ddb8fc8a042
cls/rbd: improve efficiency of mirror image status queries

The removal of remote mirror image status records no longer
(accidentally) searches through nearly the full omap database and
getting the status of a single image no longer involves duplicate
lookups (to pull the fsid keys and then to read the data).

Fixes: https://tracker.ceph.com/issues/42576
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/cls/rbd/cls_rbd.cc