From 43bca414d5065272a730c92a645c3e25768c1d05 Mon Sep 17 00:00:00 2001 From: obdev Date: Mon, 12 Jun 2023 14:11:57 +0000 Subject: [PATCH] Fix weak read hang which contain inner table scenario --- src/sql/optimizer/ob_table_location.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sql/optimizer/ob_table_location.cpp b/src/sql/optimizer/ob_table_location.cpp index b33613205..fe059679d 100644 --- a/src/sql/optimizer/ob_table_location.cpp +++ b/src/sql/optimizer/ob_table_location.cpp @@ -1319,7 +1319,8 @@ int ObTableLocation::get_is_weak_read(const ObDMLStmt &dml_stmt, ret = OB_ERR_UNEXPECTED; LOG_ERROR("unexpected null", K(ret), K(session), K(sql_ctx)); } else if (dml_stmt.get_query_ctx()->has_dml_write_stmt_ || - dml_stmt.get_query_ctx()->is_contain_select_for_update_) { + dml_stmt.get_query_ctx()->is_contain_select_for_update_ || + dml_stmt.get_query_ctx()->is_contain_inner_table_) { is_weak_read = false; } else { ObConsistencyLevel consistency_level = INVALID_CONSISTENCY; -- GitLab