Skip to content

Commit

Permalink
Fix uninitilizeded SpecialEnv::time_elapse_only_sleep_
Browse files Browse the repository at this point in the history
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
  • Loading branch information
siying committed Nov 18, 2015
1 parent d5540e1 commit 189b3e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/db_test_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 189b3e0

Please sign in to comment.