From e84299c769f57c62aa6c9bf353802f31347b3ac8 Mon Sep 17 00:00:00 2001 From: sdong Date: Wed, 28 Jan 2015 14:28:49 -0800 Subject: [PATCH] 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 --- util/mock_env.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/mock_env.cc b/util/mock_env.cc index c1b74a3d3..856d73d92 100644 --- a/util/mock_env.cc +++ b/util/mock_env.cc @@ -43,7 +43,7 @@ class MemFile { if (locked_) { return false; } else { - refs_ = true; + locked_ = true; return true; } }