This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new b7c038eb110 [fix]fix be core when migration tablet to other disk
(#37712) (#38062)
b7c038eb110 is described below
commit b7c038eb11074163d0b23baba8d90c40370c5d35
Author: Gavin Chou <[email protected]>
AuthorDate: Thu Jul 18 17:51:32 2024 +0800
[fix]fix be core when migration tablet to other disk (#37712) (#38062)

The asynchronous task reference captures a local variable
Issue Number: close #36809
Co-authored-by: z404289981 <[email protected]>
Co-authored-by: huronghui <[email protected]>
---
be/src/http/action/tablet_migration_action.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/be/src/http/action/tablet_migration_action.cpp
b/be/src/http/action/tablet_migration_action.cpp
index 5558a34bfdf..8dcfa036b3a 100644
--- a/be/src/http/action/tablet_migration_action.cpp
+++ b/be/src/http/action/tablet_migration_action.cpp
@@ -74,7 +74,8 @@ void TabletMigrationAction::handle(HttpRequest* req) {
}
_migration_tasks[current_task] = "submitted";
}
- auto st = _migration_thread_pool->submit_func([&,
dest_disk, current_task]() {
+ auto st = _migration_thread_pool->submit_func([&, tablet,
dest_store,
+
current_task]() {
{
std::unique_lock<std::mutex>
lock(_migration_status_mutex);
_migration_tasks[current_task] = "running";
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]