Skip to content

Commit

Permalink
[fix]fix be core when migration tablet to other disk (apache#37712)
Browse files Browse the repository at this point in the history
![image](https://github.com/user-attachments/assets/01f67160-3ebe-41a1-ac79-a7173d14605c)
The asynchronous task reference captures a local variable

## Proposed changes

Issue Number: close apache#36809

<!--Describe your changes.-->

Co-authored-by: huronghui <huronghui@huronghuideMac-mini.local>
  • Loading branch information
2 people authored and xiaokang committed Aug 1, 2024
1 parent 6fd672c commit 37ebab8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion be/src/http/action/tablet_migration_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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";
Expand Down

0 comments on commit 37ebab8

Please sign in to comment.