]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-fuse: Avoid doing handle cleanup in dtor
authorSam Lang <sam.lang@inktank.com>
Fri, 28 Dec 2012 19:58:39 +0000 (13:58 -0600)
committerSam Lang <sam.lang@inktank.com>
Fri, 28 Dec 2012 19:58:39 +0000 (13:58 -0600)
commit948e75246cb1311372b5be87a7ebf43b7cba329f
treec003cb87399b36950ea473d4ed6f6ab939ef9511
parentff2d4abb27ce387980a6c6f000891076b0342376
ceph-fuse: Avoid doing handle cleanup in dtor

The CephFuse::Handle class needs the client
pointer to be valid for finalizing, so don't finalize
in the destructor (which doesn't get called till the
fuse handle leaves scope), instead use a finalize method that
gets called explicitly before the client pointer is freed.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/ceph_fuse.cc
src/client/fuse_ll.cc
src/client/fuse_ll.h