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
This commit is contained in:
sdong 2015-11-17 16:16:29 -08:00
parent d5540e18e6
commit 189b3e03df

View File

@ -18,6 +18,7 @@ SpecialEnv::SpecialEnv(Env* base)
rnd_(301), rnd_(301),
sleep_counter_(this), sleep_counter_(this),
addon_time_(0), addon_time_(0),
time_elapse_only_sleep_(false),
no_sleep_(false) { no_sleep_(false) {
delay_sstable_sync_.store(false, std::memory_order_release); delay_sstable_sync_.store(false, std::memory_order_release);
drop_writes_.store(false, std::memory_order_release); drop_writes_.store(false, std::memory_order_release);