]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/objectstore/unittest_alloc_aging: init cct 41690/head
authorKefu Chai <kchai@redhat.com>
Wed, 2 Jun 2021 09:54:18 +0000 (17:54 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 4 Jun 2021 06:07:29 +0000 (14:07 +0800)
commit8b651b3522397d899aeb41f591d75fd6aebb5383
tree7e9dd2eb8a7e12575bf69299a949d3f8ecdcbd84
parentf3ec742fe28b233716c4e5fd14f9492cd5ed75b0
test/objectstore/unittest_alloc_aging: init cct

* initialize the cct use by test, otherwise g_ceph_context is
  not set at all.
* instead of using g_ceph_context, use static member variable cct.
  less dependency to the global instance.
* setup and teardown the cct for test suite, because global_init()
  initialize g_ceph_context, which cannot be set multiple times.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/Allocator_aging_fragmentation.cc