]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mempool: use function static for pool table
authorSage Weil <sage@redhat.com>
Thu, 20 Oct 2016 15:10:08 +0000 (10:10 -0500)
committerSage Weil <sage@redhat.com>
Wed, 2 Nov 2016 17:48:49 +0000 (13:48 -0400)
commit9cecff8d18334f23884115a074278292d51f1fa2
treee28c5b6a85ca16422bd574585a58353e6ab2ccd1
parentebf052762e1e2d6be955c7fdbd0d5570ec3e15dd
mempool: use function static for pool table

The compiler/linker guarantee this is initialized before any invocation
of this function... even if it is by a ctor in another compilation unit
that is initialized by the mempool.cc compilation unit.

Suggested by Bartłomiej Święcki <bartlomiej.swiecki@corp.ovh.com>

Signed-off-by: Allen Samuels <allen.samuels@sandisk.com>
src/global/mempool.cc
src/include/mempool.h