]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mempool: dynamic index by type in pool_t
authorSage Weil <sage@redhat.com>
Fri, 14 Oct 2016 21:50:33 +0000 (17:50 -0400)
committerSage Weil <sage@redhat.com>
Wed, 2 Nov 2016 17:48:49 +0000 (13:48 -0400)
commit049797641b946a1f8a8c4484143859b9ba356146
treebd49b0fe398607245667a0c05b2a69901395f4e9
parent55d42d0830798511e3c50b225aec070c4ab90b9e
mempool: dynamic index by type in pool_t

This avoids having to use statics for the pool_allocators and
guessing what intenral types the containers are going to need.
It'll be a bit slower in debug on on construction and destruction,
but who cares!

Signed-off-by: Sage Weil <sage@redhat.com>
src/global/mempool.cc
src/include/mempool.h
src/os/bluestore/BlueStore.cc
src/os/bluestore/bluestore_types.cc
src/test/test_mempool.cc