Fix bug recently introduced in MemFile::Lock()

Summary: This bug fails DBTest.CheckLock

Test Plan: DBTest.CheckLock now passes with MEM_ENV=1.

Reviewers: rven, yhchiang, igor

Reviewed By: igor

Subscribers: leveldb, dhruba

Differential Revision: https://reviews.facebook.net/D32451
main
sdong 10 years ago
parent e5aab4c2b2
commit e84299c769
  1. 2
      util/mock_env.cc

@ -43,7 +43,7 @@ class MemFile {
if (locked_) {
return false;
} else {
refs_ = true;
locked_ = true;
return true;
}
}

Loading…
Cancel
Save