Skip to content

Commit

Permalink
Fix MySQL connection crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Sep 8, 2023
1 parent db3a06e commit e01a5ca
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 @@ -744,9 +744,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 e01a5ca

Please sign in to comment.