Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hx235 committed Aug 9, 2024
1 parent 16c21af commit 1aab5f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions db_stress_tool/db_stress_test_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3488,8 +3488,12 @@ void StressTest::Open(SharedState* shared, bool reopen) {
s = DB::OpenForReadOnly(DBOptions(options_), FLAGS_db,
cf_descriptors, &column_families_, &db_);
} else {
s = DB::Open(DBOptions(options_), FLAGS_db, cf_descriptors,
&column_families_, &db_);
Options options_local_stat = options_;
options_local_stat.statistics = nullptr;
options_local_stat.statistics =
ROCKSDB_NAMESPACE::CreateDBStatistics();
s = DB::Open(DBOptions(options_local_stat), FLAGS_db,
cf_descriptors, &column_families_, &db_);
}
}

Expand Down

0 comments on commit 1aab5f6

Please sign in to comment.