]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cls/rbd: sanitize entity instance messenger version type 30438/head
authorJason Dillaman <dillaman@redhat.com>
Tue, 17 Sep 2019 19:49:48 +0000 (15:49 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 18 Sep 2019 14:03:13 +0000 (10:03 -0400)
commitc0c6b25d4f3edd8636fd0a270024d959b16c1dda
tree8dd47b177d90a34f9fc69707c83c07f8cb2f56bc
parent4bee76ba9cba38dbce76edcdac537c895662a3d8
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>
src/cls/rbd/cls_rbd.cc