From 189b3e03df479c0da976785954e180b4cf634a26 Mon Sep 17 00:00:00 2001 From: sdong Date: Tue, 17 Nov 2015 16:16:29 -0800 Subject: [PATCH] Fix uninitilizeded SpecialEnv::time_elapse_only_sleep_ Summary: SpecialEnv::time_elapse_only_sleep_ is not initialized, which might cause some test failures. Fix it. Test Plan: Run some unit tests. Since tests already broken. Might want to commit it sooner. Reviewers: IslamAbdelRahman, yhchiang, anthony Reviewed By: anthony Subscribers: leveldb, dhruba Differential Revision: https://reviews.facebook.net/D50937 --- db/db_test_util.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db_test_util.cc b/db/db_test_util.cc index 6cfb1781a..85a3f90df 100644 --- a/db/db_test_util.cc +++ b/db/db_test_util.cc @@ -18,6 +18,7 @@ SpecialEnv::SpecialEnv(Env* base) rnd_(301), sleep_counter_(this), addon_time_(0), + time_elapse_only_sleep_(false), no_sleep_(false) { delay_sstable_sync_.store(false, std::memory_order_release); drop_writes_.store(false, std::memory_order_release);