From 472a80a3ae3bad61232d3d80ff7ab06667ce5ffe Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Thu, 24 Apr 2014 06:46:50 -0700 Subject: [PATCH] Initialize verification_failed in db_stress --- tools/db_stress.cc | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/tools/db_stress.cc b/tools/db_stress.cc index 0005026d0..d71bd6a15 100644 --- a/tools/db_stress.cc +++ b/tools/db_stress.cc @@ -547,19 +547,20 @@ class SharedState { public: static const uint32_t SENTINEL; - explicit SharedState(StressTest* stress_test) : - cv_(&mu_), - seed_(FLAGS_seed), - max_key_(FLAGS_max_key), - log2_keys_per_lock_(FLAGS_log2_keys_per_lock), - num_threads_(FLAGS_threads), - num_initialized_(0), - num_populated_(0), - vote_reopen_(0), - num_done_(0), - start_(false), - start_verify_(false), - stress_test_(stress_test) { + explicit SharedState(StressTest* stress_test) + : cv_(&mu_), + seed_(FLAGS_seed), + max_key_(FLAGS_max_key), + log2_keys_per_lock_(FLAGS_log2_keys_per_lock), + num_threads_(FLAGS_threads), + num_initialized_(0), + num_populated_(0), + vote_reopen_(0), + num_done_(0), + start_(false), + start_verify_(false), + stress_test_(stress_test), + verification_failure_(false) { if (FLAGS_test_batches_snapshots) { fprintf(stdout, "No lock creation because test_batches_snapshots set\n"); return;