From 385412b6c06646ceab87c8a9a062646622a97fc5 Mon Sep 17 00:00:00 2001 From: Siying Dong Date: Thu, 20 Apr 2017 15:56:50 -0700 Subject: [PATCH] StackableDB should pass ResetStats() Summary: Closes https://github.com/facebook/rocksdb/pull/2190 Differential Revision: D4922688 Pulled By: siying fbshipit-source-id: eaa3d122f8d389ae0508ec8b61f7780fd8b0a7ef --- include/rocksdb/utilities/stackable_db.h | 3 +++ utilities/transactions/transaction_test.cc | 2 ++ 2 files changed, 5 insertions(+) diff --git a/include/rocksdb/utilities/stackable_db.h b/include/rocksdb/utilities/stackable_db.h index 481024d89..7ae8c9e4a 100644 --- a/include/rocksdb/utilities/stackable_db.h +++ b/include/rocksdb/utilities/stackable_db.h @@ -325,6 +325,9 @@ class StackableDB : public DB { return db_->SetDBOptions(new_options); } + using DB::ResetStats; + virtual Status ResetStats() override { return db_->ResetStats(); } + using DB::GetPropertiesOfAllTables; virtual Status GetPropertiesOfAllTables( ColumnFamilyHandle* column_family, diff --git a/utilities/transactions/transaction_test.cc b/utilities/transactions/transaction_test.cc index b7b8e772e..a7c572db1 100644 --- a/utilities/transactions/transaction_test.cc +++ b/utilities/transactions/transaction_test.cc @@ -136,6 +136,8 @@ TEST_P(TransactionTest, DoubleEmptyWrite) { } TEST_P(TransactionTest, SuccessTest) { + ASSERT_OK(db->ResetStats()); + WriteOptions write_options; ReadOptions read_options; string value;