Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: fuzhe1989 <fuzhe1989@gmail.com>
  • Loading branch information
fuzhe1989 committed Mar 11, 2022
1 parent a149119 commit 8e17f3a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dbms/src/Common/MPMCQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class MPMCQueue

~MPMCQueue()
{
std::unique_lock lock(mu);
for (; read_pos < write_pos; ++read_pos)
destruct(getObj(read_pos));
}
Expand Down

0 comments on commit 8e17f3a

Please sign in to comment.