fix online gather stats bug and item type placeholder reservation

This commit is contained in:
wangt1xiuyi 2024-03-15 10:15:17 +00:00 committed by ob-robot
parent da3baef76c
commit 0acfb6a7ae
2 changed files with 3 additions and 3 deletions

View File

@ -877,6 +877,7 @@ typedef enum ObItemType
T_FUN_SYS_WAIT_FOR_EXECUTED_GTID_SET = 2014,
T_FUN_SYS_WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS = 2015,
T_FUN_SYS_LAST_REFRESH_SCN = 2016,
T_FUN_SUM_OPNSIZE = 2017,
T_MAX_OP = 3000,

View File

@ -1292,15 +1292,14 @@ int ObDbmsStatsExecutor::update_online_stat(ObExecContext &ctx,
ObSEArray<ObOptColumnStat *, 4> column_stats;
bool succ_to_write_stats = false;
if (OB_FAIL(ObDbmsStatsLockUnlock::check_stat_locked(ctx, param))) {
LOG_WARN("fail to check lock stat", K(ret));
if (ret == OB_ERR_DBMS_STATS_PL) {
param.global_stat_param_.reset_gather_stat();
param.part_stat_param_.reset_gather_stat();
param.subpart_stat_param_.reset_gather_stat();
ret = OB_SUCCESS; // ignore lock check error
}
LOG_WARN("fail to check lock stat", K(ret));
}
if (OB_SUCC(ret)) {
} else {
SMART_VAR(sql::ObSQLSessionInfo::StmtSavedValue, saved_value) {
int64_t nested_count = -1;
ObSqlString old_db_name;