From: Igor Fedotov Date: Thu, 1 Dec 2016 17:39:10 +0000 (+0000) Subject: test/fio: fix global CephContext life cycle in fio pobjectstore plugin X-Git-Tag: v11.1.0~79^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12245%2Fhead;p=ceph.git test/fio: fix global CephContext life cycle in fio pobjectstore plugin Signed-off-by: Igor Fedotov --- diff --git a/src/test/fio/fio_ceph_objectstore.cc b/src/test/fio/fio_ceph_objectstore.cc index 719db93275f7..8d03708ff311 100644 --- a/src/test/fio/fio_ceph_objectstore.cc +++ b/src/test/fio/fio_ceph_objectstore.cc @@ -103,7 +103,7 @@ Engine::Engine(const thread_data* td) : ref_count(0) } // claim the g_ceph_context reference and release it on destruction - auto cct = global_init(nullptr, args, CEPH_ENTITY_TYPE_OSD, + cct = global_init(nullptr, args, CEPH_ENTITY_TYPE_OSD, CODE_ENVIRONMENT_UTILITY, 0); common_init_finish(g_ceph_context);