]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tests/test_bluestore_types: show AvlAllocator's range_seg_t size.
authorIgor Fedotov <ifedotov@suse.com>
Thu, 13 Feb 2020 21:56:07 +0000 (00:56 +0300)
committerIgor Fedotov <ifedotov@suse.com>
Mon, 13 Apr 2020 13:12:43 +0000 (16:12 +0300)
Extend corresponding test case to be aware of the struct's sizeof.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
src/test/objectstore/test_bluestore_types.cc

index b4b8e481fd1bd8c5fe50fe7eedb3d752e126fb5d..da811be305b884056e1e028f9a8d191ec5ea1555 100644 (file)
@@ -7,6 +7,7 @@
 #include "include/stringify.h"
 #include "common/ceph_time.h"
 #include "os/bluestore/BlueStore.h"
+#include "os/bluestore/AvlAllocator.h"
 #include "common/ceph_argparse.h"
 #include "global/global_init.h"
 #include "global/global_context.h"
@@ -40,6 +41,7 @@ TEST(bluestore, sizeof) {
   P(boost::intrusive::unordered_set_base_hook<>);
   P(bufferlist);
   P(bufferptr);
+  P(range_seg_t);
   cout << "map<uint64_t,uint64_t>\t" << sizeof(map<uint64_t,uint64_t>) << std::endl;
   cout << "map<char,char>\t" << sizeof(map<char,char>) << std::endl;
 }