提交 8b5d87ee 编写于 作者: Z zh0 提交者: wangzelin.wzl

fix standalone weak read bug

上级 acef9d21
......@@ -1857,7 +1857,8 @@ int ObSqlTransControl::start_standalone_stmt(
is_local_single_partition_stmt ? in_pla.get_partitions().at(0) : ObPartitionKey()));
}
if (OB_FAIL(ret)) {
} else if (standalone_stmt_desc.is_bounded_staleness_read() && !ObWeakReadUtil::check_weak_read_service_available()) {
} else if (standalone_stmt_desc.is_bounded_staleness_read() &&
!ObWeakReadUtil::enable_monotonic_weak_read(session_info.get_effective_tenant_id())) {
if (ObSqlTransUtil::plan_can_start_trans(session_info.get_local_autocommit(), session_info.get_in_transaction())) {
OZ(implicit_start_trans(exec_ctx, is_remote));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册