From 5d85fdb2c58d1b3988ff07ac6d4feaaa7ddbaab1 Mon Sep 17 00:00:00 2001 From: Reid Horuff Date: Tue, 31 May 2016 12:26:48 -0700 Subject: [PATCH] add missing lock --- db/db_impl.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/db/db_impl.cc b/db/db_impl.cc index 8d86691d6..4896d82ba 100644 --- a/db/db_impl.cc +++ b/db/db_impl.cc @@ -676,6 +676,7 @@ void DBImpl::MarkLogAsContainingPrepSection(uint64_t log) { } uint64_t DBImpl::FindMinLogContainingOutstandingPrep() { + std::lock_guard lock(prep_heap_mutex_); uint64_t min_log = 0; // first we look in the prepared heap where we keep