]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_context: remove unsafe cast for singletons 6415/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 15 Oct 2015 04:15:54 +0000 (00:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 20 Nov 2015 17:12:26 +0000 (12:12 -0500)
commita81bcf723c1099f2bea5daf8b01b7d9853de323a
tree0603e14781341840ee5410fc09cb2a87c3619468
parentd50d7b2fa3751e8520694ee75eefe5ae56e57267
ceph_context: remove unsafe cast for singletons

It was previously assumed that a CephContext singleton would
inherit from CephContext::AssociatedSingletonObject, but it was
not enforced.  This could result in unknown behavior when the
singleton is destroyed due to the implied virtual destructor.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit fb62c78637d7092f48871d943282f45029bd6d29)
src/common/ceph_context.cc
src/common/ceph_context.h
src/msg/async/AsyncMessenger.h