]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
bluestore: Fix warning in pool allocator 11921/head
authorAdam C. Emerson <aemerson@redhat.com>
Wed, 16 Nov 2016 22:13:52 +0000 (17:13 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Thu, 17 Nov 2016 03:05:24 +0000 (22:05 -0500)
commite1fd8f19f6f4de87e20195565937f8a483cf19dc
tree3327b91416c83f6606776213018732380fbee0a0
parentbca0f4b02ef33cd9abc1ef066c7ef892040241b9
bluestore: Fix warning in pool allocator

Since we're not allocating anything, we should return nullptr and mark
the function noexcept. (Functions not marked noexcept are not allowed to
return nullptr.)

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/include/mempool.h