Skip to content

Commit

Permalink
Fix MySQL crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Sep 8, 2023
1 parent d7009f9 commit 3b6465e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/factory/MySQLTaskImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,9 @@ bool ComplexMySQLTask::finish_once()
{
if (this->state != WFT_STATE_SUCCESS || this->keep_alive_timeo == 0)
{
auto *target = (RouteManager::RouteTarget *)this->get_target();
CommTarget *target = this->get_target();
if (target)
target->state = 0;
((RouteManager::RouteTarget *)target)->state = 0;
}
}

Expand Down

0 comments on commit 3b6465e

Please sign in to comment.