enable batch_stmt_optimization query return to large query queue, disable retry for non-first multi-stmt item

This commit is contained in:
raywill
2023-03-21 15:53:56 +00:00
committed by ob-robot
parent 8437d5349d
commit 8b9d8f2f05
4 changed files with 10 additions and 2 deletions

View File

@ -1538,7 +1538,9 @@ int ObMPStmtExecute::try_batch_multi_stmt_optimization(ObSQLSessionInfo &session
LOG_WARN("fail to trans_form extend type params_store", K(ret), K(arraybinding_size_));
} else if (OB_FAIL(do_process_single(session, array_binding_params, has_more_result, force_sync_resp, async_resp_used))) {
// 调用do_single接口
if (OB_BATCHED_MULTI_STMT_ROLLBACK == ret) {
if (THIS_WORKER.need_retry()) {
// just go back to large query queue and retry
} else if (OB_BATCHED_MULTI_STMT_ROLLBACK == ret) {
LOG_TRACE("batched multi_stmt needs rollback", K(ret));
ret = OB_SUCCESS;
} else {