imay commented on a change in pull request #718: Clean timeout tablets channel
in TabletWriterMgr
URL: https://github.com/apache/incubator-doris/pull/718#discussion_r264157782
##########
File path: be/src/runtime/tablet_writer_mgr.cpp
##########
@@ -315,6 +324,48 @@ Status TabletWriterMgr::cancel(const
PTabletWriterCancelRequest& params) {
return Status::OK;
}
+Status TabletWriterMgr::start_bg_worker() {
+ _tablets_channel_clean_thread = std::thread(
+ [this] {
+ _tablets_channel_clean_thread_callback(nullptr);
+ });
+ _tablets_channel_clean_thread.detach();
+ return Status::OK;
+}
+
+void* TabletWriterMgr::_tablets_channel_clean_thread_callback(void* arg) {
Review comment:
you can remove this function and put this logical to lambda in
`start_bg_worker`.
----------------------------------------------------------------
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]