From: John Spray Date: Mon, 9 Jan 2017 10:45:44 +0000 (+0000) Subject: libcephfs: fix cct refcount constructing from rados X-Git-Tag: v12.0.0~198^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a1c8e510a8620d955b2d45f0fbdeae0ad9ade357;p=ceph-ci.git libcephfs: fix cct refcount constructing from rados 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 --- diff --git a/src/libcephfs.cc b/src/libcephfs.cc index 2c1ada54438..ec2da4a0d54 100644 --- a/src/libcephfs.cc +++ b/src/libcephfs.cc @@ -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); }