add missing lock

This commit is contained in:
Reid Horuff 2016-05-31 12:26:48 -07:00
parent c40c4cae14
commit 5d85fdb2c5
1 changed files with 1 additions and 0 deletions

View File

@ -676,6 +676,7 @@ void DBImpl::MarkLogAsContainingPrepSection(uint64_t log) {
}
uint64_t DBImpl::FindMinLogContainingOutstandingPrep() {
std::lock_guard<std::mutex> lock(prep_heap_mutex_);
uint64_t min_log = 0;
// first we look in the prepared heap where we keep