StackableDB should pass ResetStats()

Summary: Closes https://github.com/facebook/rocksdb/pull/2190

Differential Revision: D4922688

Pulled By: siying

fbshipit-source-id: eaa3d122f8d389ae0508ec8b61f7780fd8b0a7ef
This commit is contained in:
Siying Dong 2017-04-20 15:56:50 -07:00 committed by Islam AbdelRahman
parent e38e83169a
commit 385412b6c0
2 changed files with 5 additions and 0 deletions

View File

@ -325,6 +325,9 @@ class StackableDB : public DB {
return db_->SetDBOptions(new_options); return db_->SetDBOptions(new_options);
} }
using DB::ResetStats;
virtual Status ResetStats() override { return db_->ResetStats(); }
using DB::GetPropertiesOfAllTables; using DB::GetPropertiesOfAllTables;
virtual Status GetPropertiesOfAllTables( virtual Status GetPropertiesOfAllTables(
ColumnFamilyHandle* column_family, ColumnFamilyHandle* column_family,

View File

@ -136,6 +136,8 @@ TEST_P(TransactionTest, DoubleEmptyWrite) {
} }
TEST_P(TransactionTest, SuccessTest) { TEST_P(TransactionTest, SuccessTest) {
ASSERT_OK(db->ResetStats());
WriteOptions write_options; WriteOptions write_options;
ReadOptions read_options; ReadOptions read_options;
string value; string value;