]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/store_test: pass raw Formatter pointer as expected 38227/head
authorKefu Chai <kchai@redhat.com>
Sat, 21 Nov 2020 17:14:27 +0000 (01:14 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 21 Nov 2020 17:16:01 +0000 (01:16 +0800)
this addresses the FTBFS regression introduced by
f153a7031e56534723c0fc891869902c58acb473

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/store_test.cc

index efe09046f3115c819f7e2d5a362ae6336822b335..370f28f045340d6aec3d30e6463b36e5d3bdb6d4 100644 (file)
@@ -7894,7 +7894,7 @@ TEST_P(StoreTest, KVDBHistogramTest) {
   }
 
   std::unique_ptr<Formatter> f(Formatter::create("store_test", "json-pretty", "json-pretty"));
-  store->generate_db_histogram(f);
+  store->generate_db_histogram(f.get());
   f->flush(cout);
   cout << std::endl;
 }
@@ -7938,7 +7938,7 @@ TEST_P(StoreTest, KVDBStatsTest) {
   }
 
   std::unique_ptr<Formatter> f(Formatter::create("store_test", "json-pretty", "json-pretty"));
-  store->get_db_statistics(f);
+  store->get_db_statistics(f.get());
   f->flush(cout);
   cout << std::endl;
 }
@@ -8483,7 +8483,7 @@ TEST_P(StoreTest, BluestoreStatistics) {
     ASSERT_TRUE(bl_eq(bl, readback));
   }
   std::unique_ptr<Formatter> f(Formatter::create("store_test", "json-pretty", "json-pretty"));
-  EXPECT_NO_THROW(store->get_db_statistics(f));
+  EXPECT_NO_THROW(store->get_db_statistics(f.get()));
   f->flush(cout);
   cout << std::endl;
 }