]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
libcephfs: take ref when constructed with CephContext
authorJohn Spray <john.spray@redhat.com>
Thu, 8 Sep 2016 17:35:15 +0000 (18:35 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 19 Oct 2016 22:03:13 +0000 (23:03 +0100)
commit7861a84b75e532a0c2285dec2ba8835f7e3bfa96
tree5dd40c4459c7c36d9249163c6a6d1941962f84b5
parentcb827316bfae698193869f1dbefb29add1a37a41
libcephfs: take ref when constructed with CephContext

Previously, if you used ceph_create_with_context, then
it would try and destroy your context when you called
ceph_release.  Bad behaviour: caller created the
context, caller should decide when to destroy it.

Signed-off-by: John Spray <john.spray@redhat.com>
src/libcephfs.cc