From 9aff5699ea964eba66098de5c3c927d4f2d8b8b2 Mon Sep 17 00:00:00 2001 From: lcy Date: Tue, 5 Mar 2024 11:35:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AE=97=E5=AD=90=E4=B8=8B?= =?UTF-8?q?=E6=8E=A8=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- storage/tianchi/ha_tse.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/storage/tianchi/ha_tse.cc b/storage/tianchi/ha_tse.cc index 3c89891..837ed98 100644 --- a/storage/tianchi/ha_tse.cc +++ b/storage/tianchi/ha_tse.cc @@ -3052,15 +3052,14 @@ int ha_tse::rnd_init(bool) { int ha_tse::rnd_next(uchar *buf) { DBUG_TRACE; - THD *thd = ha_thd(); - if (engine_ddl_passthru(thd) && (is_alter_table_copy(thd) || is_create_table_check(thd) || - is_alter_table_scan(m_error_if_not_empty))) { - return HA_ERR_END_OF_FILE; - } - ha_statistic_increment(&System_status_var::ha_read_rnd_next_count); if (!m_rec_buf || m_rec_buf->max_records() == 0) { + THD *thd = ha_thd(); + if (engine_ddl_passthru(thd) && (is_alter_table_copy(thd) || is_create_table_check(thd) || + is_alter_table_scan(m_error_if_not_empty))) { + return HA_ERR_END_OF_FILE; + } int ret = CT_SUCCESS; ct_errno_t ct_ret = CT_SUCCESS; uchar *tse_buf = m_tse_buf ? m_tse_buf : tse_alloc_buf(&m_tch, BIG_RECORD_SIZE_DYNAMIC); -- Gitee