[CP] add _ob_wait_interval_after_truncate conf for truncate

This commit is contained in:
obdev
2023-05-23 02:41:36 +00:00
committed by ob-robot
parent c7d7f34b18
commit e9ee090ba4
3 changed files with 5 additions and 1 deletions

View File

@ -2147,7 +2147,7 @@ int ObTruncateTableExecutor::execute(ObExecContext &ctx, ObTruncateTableStmt &st
&& consensus_schema_version >= res.task_id_) {
break;
} else if (refreshed_schema_version >= res.task_id_
&& ObTimeUtility::current_time() - step_time >= 10 * 1000 * 1000) { //10s
&& ObTimeUtility::current_time() - step_time >= GCONF._wait_interval_after_truncate) {
break;
} else {
ob_usleep(10 * 1000);