Skip to content

Commit

Permalink
fix lock leak
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Sep 18, 2023
1 parent eb3df0b commit 7eb3844
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/homestore/heap_chunk_selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ csharedChunk HeapChunkSelector::select_chunk(homestore::blk_count_t count, const
it->second->first.lock();
if(it->second->second.empty()) {
LOGINFO("No more available chunks found for pdev {}", pdevID);
it->second->first.unlock();
return nullptr;
}

Expand Down

0 comments on commit 7eb3844

Please sign in to comment.