[4.1] support distributed txn free route

This commit is contained in:
chinaxing
2023-01-28 16:07:17 +08:00
committed by ob-robot
parent 1cdf1dff1c
commit 30d0adec61
89 changed files with 3978 additions and 518 deletions

View File

@ -238,15 +238,6 @@ int ObMPStmtPrexecute::before_process()
LOG_WARN("run stmt_query failed, check if need retry",
K(ret), K(cli_ret), K(get_retry_ctrl().need_retry()), K(sql_));
ret = cli_ret;
} else {
if (session->get_in_transaction()) {
if (ObStmt::is_write_stmt(result.get_stmt_type(),
result.has_global_variable())) {
session->set_has_exec_write_stmt(true);
}
} else {
session->set_has_exec_write_stmt(false);
}
}
session->set_session_in_retry(retry_ctrl_.need_retry());
}