From: xie xingguo Date: Tue, 27 Dec 2016 11:39:51 +0000 (+0800) Subject: os/bluestore: fix OnodeSizeTracking testing X-Git-Tag: v12.0.0~343^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1d97862f716ce24bfe227b192ecc5e1eb3f76757;p=ceph.git os/bluestore: fix OnodeSizeTracking testing [ FAILED ] 1 test, listed below: [ FAILED ] ObjectStore/StoreTest.OnodeSizeTracking/2, where GetParam() = "bluestore" 1 FAILED TEST The above test failure happens as the bluestore mount() process will try to load all collections and put them into the coll_map, which will be also tracked as mempool::bluestore_meta_other. So total_bytes from mempool won't be equal to zero. Signed-off-by: xie xingguo --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 9c149ec6ebf2..87a1afe60c29 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -5596,7 +5596,6 @@ TEST_P(StoreTest, OnodeSizeTracking) { uint64_t total_bytes, total_bytes2; uint64_t total_onodes; get_mempool_stats(&total_bytes, &total_onodes); - ASSERT_EQ(total_bytes, 0u); ASSERT_EQ(total_onodes, 0u); {