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
This commit is contained in:
parent
e5aab4c2b2
commit
e84299c769
@ -43,7 +43,7 @@ class MemFile {
|
|||||||
if (locked_) {
|
if (locked_) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
refs_ = true;
|
locked_ = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user