]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
libcephfs: fix cct refcount constructing from rados
authorJohn Spray <john.spray@redhat.com>
Mon, 9 Jan 2017 10:45:44 +0000 (10:45 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 9 Jan 2017 10:45:44 +0000 (10:45 +0000)
This get() made sense before ceph_mount_info did its
own reference acquisition on the context object.

Follow up to:
a567fa66 libcephfs.cc: fix memory leak

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

index 2c1ada54438d477ada4eb01401da8a88a181c7b5..ec2da4a0d54a7646b07e6d44a0cb9ef84bd76e84 100644 (file)
@@ -320,7 +320,6 @@ extern "C" int ceph_create_from_rados(struct ceph_mount_info **cmount,
 {
   auto rados = (librados::RadosClient *) cluster;
   auto cct = rados->cct;
-  cct->get();
   return ceph_create_with_context(cmount, cct);
 }