Skip to content

Commit

Permalink
[fix] fix compile error (apache#8688)
Browse files Browse the repository at this point in the history
Introduced from PR apache#8643
The condition_variable can only wait unique_lock
  • Loading branch information
morningman authored Mar 28, 2022
1 parent b67596b commit db5299d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/runtime/data_stream_recvr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void DataStreamRecvr::SenderQueue::add_batch(const PRowBatch& pb_batch, int be_n
}

void DataStreamRecvr::SenderQueue::add_batch(RowBatch* batch, bool use_move) {
lock_guard<mutex> l(_lock);
unique_lock<mutex> l(_lock);
if (_is_cancelled) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion be/src/vec/runtime/vdata_stream_recvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ void VDataStreamRecvr::SenderQueue::add_block(const PBlock& pblock, int be_numbe
}

void VDataStreamRecvr::SenderQueue::add_block(Block* block, bool use_move) {
std::lock_guard<std::mutex> l(_lock);
std::unique_lock<std::mutex> l(_lock);
if (_is_cancelled) {
return;
}
Expand Down

0 comments on commit db5299d

Please sign in to comment.