fix some optimizer stats bug

This commit is contained in:
wangt1xiuyi
2023-08-18 08:17:39 +00:00
committed by ob-robot
parent 2308c9d47f
commit 00d479878b
8 changed files with 226 additions and 257 deletions

View File

@ -2470,7 +2470,7 @@ int ObDbmsStats::purge_stats(sql::ObExecContext &ctx,
}
}
if (OB_SUCC(ret)) {
if (ObDbmsStatsHistoryManager::purge_stats(ctx, specify_time)) {
if (OB_FAIL(ObDbmsStatsHistoryManager::purge_stats(ctx, specify_time))) {
LOG_WARN("failed to purge stats", K(ret));
} else {/*do nothing*/}
}