]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph_context: remove unsafe cast for singletons 6249/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 15 Oct 2015 04:15:54 +0000 (00:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 15 Oct 2015 04:15:54 +0000 (00:15 -0400)
commitfb62c78637d7092f48871d943282f45029bd6d29
tree938237bf17f8c10855a221bb788ad5f36df833dc
parent0009f343a5daf28358a669836d95660c0d9068d8
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>
src/common/ceph_context.cc
src/common/ceph_context.h
src/msg/async/AsyncMessenger.h