test: add mempool dump to Onode size tracking test case

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
This commit is contained in:
Igor Fedotov 2016-12-16 16:14:54 +00:00
parent 9a7838790b
commit 1b66857702

View File

@ -5631,6 +5631,16 @@ TEST_P(StoreTest, OnodeSizeTracking) {
ASSERT_NE(total_bytes2, 0u); ASSERT_NE(total_bytes2, 0u);
ASSERT_EQ(total_onodes, 1u); ASSERT_EQ(total_onodes, 1u);
} }
{
cout <<" mempool dump:\n";
JSONFormatter f(true);
f.open_object_section("transaction");
mempool::dump(&f);
f.close_section();
f.flush(cout);
cout << std::endl;
}
{ {
ObjectStore::Transaction t; ObjectStore::Transaction t;
t.remove(cid, hoid); t.remove(cid, hoid);