morningman commented on a change in pull request #2956: Add multi-thread ver 
olaptablesink for LOAD
URL: https://github.com/apache/incubator-doris/pull/2956#discussion_r382893956
 
 

 ##########
 File path: be/src/exec/tablet_sink.cpp
 ##########
 @@ -550,6 +648,12 @@ Status OlapTableSink::open(RuntimeState* state) {
     for (auto channel : _channels) {
         RETURN_IF_ERROR(channel->open());
     }
+
+    if (_use_multi_thread()) {
+        for (int i = 0; i < _buffers.size(); ++i) {
+            
_send_threads.emplace_back(boost::thread(&RowBuffer::consume_process, 
_buffers[i], i));
 
 Review comment:
   using `std::thread` instead

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to