]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: add mempool dump to Onode size tracking test case 12532/head
authorIgor Fedotov <ifedotov@mirantis.com>
Fri, 16 Dec 2016 16:14:54 +0000 (16:14 +0000)
committerIgor Fedotov <ifedotov@mirantis.com>
Fri, 16 Dec 2016 16:14:54 +0000 (16:14 +0000)
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
src/test/objectstore/store_test.cc

index e5aa0e5696288a659674350ad5f6e4919a4ef634..9c149ec6ebf2f15664fd1576e72c1c9d3a3ca45e 100644 (file)
@@ -5631,6 +5631,16 @@ TEST_P(StoreTest, OnodeSizeTracking) {
     ASSERT_NE(total_bytes2, 0u);
     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;
     t.remove(cid, hoid);