From 212294ac145f9b58ce1151bf74bed8f3b57a9c59 Mon Sep 17 00:00:00 2001 From: Igor Fedotov Date: Thu, 1 Dec 2016 17:39:10 +0000 Subject: [PATCH] test/fio: fix global CephContext life cycle in fio pobjectstore plugin Signed-off-by: Igor Fedotov --- src/test/fio/fio_ceph_objectstore.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/fio/fio_ceph_objectstore.cc b/src/test/fio/fio_ceph_objectstore.cc index 719db93275f75..8d03708ff3112 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); -- 2.39.5