kaijchen commented on code in PR #41488:
URL: https://github.com/apache/doris/pull/41488#discussion_r1796701537


##########
be/src/runtime/load_stream_mgr.cpp:
##########
@@ -62,6 +63,12 @@ Status LoadStreamMgr::open_load_stream(const 
POpenLoadStreamRequest* request,
             _load_streams_map[load_id] = std::move(p);
         }
         load_stream->add_source(request->src_id());
+        if (_known_connections.contains(conn_id)) {
+            // detected retry open, increase total streams
+            load_stream->increase_use_count();

Review Comment:
   ```suggestion
               load_stream->increase_total_streams();
   ```



##########
be/src/runtime/load_stream.h:
##########
@@ -126,6 +126,8 @@ class LoadStream : public brpc::StreamInputHandler {
         }
     }
 
+    void increase_use_count() { _total_streams++; }

Review Comment:
   ```suggestion
       void increase_total_streams() { _total_streams++; }
   ```



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to