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 Facebook Github Bot
parent c1fbf91b2f
commit 7534ba7bde
2 changed files with 5 additions and 0 deletions

View File

@ -307,6 +307,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,

View File

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