]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls/rbd: sanitize entity instance messenger version type 30822/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 17 Sep 2019 19:49:48 +0000 (15:49 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 9 Oct 2019 19:49:03 +0000 (15:49 -0400)
commit3140054ba2a3e7c199e20b74b78d325161ae4a79
treec0e85234b678885a609b89c8e2aacd8fe804117e
parent6bd64f37f60816660a82db0da2abcc49f30d9ddd
cls/rbd: sanitize entity instance messenger version type

The entity_addr_t::type field does not uniquely identify the connection
and might switch back and forth between LEGACY, V2, and ALL depending on
the client, the OSD, and the OSD map feature bits. Therefore, always
fix the entity address type to ANY prior to any comparisons.

Fixes: https://tracker.ceph.com/issues/41833
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c0c6b25d4f3edd8636fd0a270024d959b16c1dda)
src/cls/rbd/cls_rbd.cc