From: Igor Fedotov Date: Mon, 27 Feb 2017 13:10:48 +0000 (+0000) Subject: test/store_test: adjust OnodeSizeTracking test case to measure full object metadata... X-Git-Tag: v12.0.2~265^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=2418b91411800a21ed449c11196fee954cca45d0;p=ceph.git test/store_test: adjust OnodeSizeTracking test case to measure full object metadata using empty Onode as a basis Signed-off-by: Igor Fedotov --- diff --git a/src/test/objectstore/store_test.cc b/src/test/objectstore/store_test.cc index 1e22657ee97..277a0d06176 100644 --- a/src/test/objectstore/store_test.cc +++ b/src/test/objectstore/store_test.cc @@ -5744,6 +5744,13 @@ TEST_P(StoreTestSpecificAUSize, OnodeSizeTracking) { ASSERT_NE(total_bytes, 0u); ASSERT_EQ(total_onodes, 1u); + { + ObjectStore::Transaction t; + t.truncate(cid, hoid, 0); + r = apply_transaction(store, &osr, std::move(t)); + ASSERT_EQ(r, 0); + } + for(size_t i = 0; i < 1; ++i) { bufferlist bl; bl.append(std::string(block_size * (i+1), 'a'));