Skip to content

Commit

Permalink
Bugfix/mpptask shared from this (#3889) (#3890)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot committed Jan 19, 2022
1 parent a3f4db4 commit 2b887f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Flash/Mpp/MPPTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ void MPPTask::finishWrite()

void MPPTask::run()
{
newThreadManager()->scheduleThenDetach(true, "MPPTask", [this] { this->shared_from_this()->runImpl(); });
newThreadManager()->scheduleThenDetach(true, "MPPTask", [self = shared_from_this()] { self->runImpl(); });
}

void MPPTask::registerTunnel(const MPPTaskId & id, MPPTunnelPtr tunnel)
Expand Down

0 comments on commit 2b887f0

Please sign in to comment.