Assert that we will create indexes on shards via local execution (#5620)

pull/5623/head
Onur Tirtir 2022-01-13 19:09:57 +03:00 committed by GitHub
parent deac77e053
commit 70d8e1fe97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -1201,6 +1201,15 @@ ExecuteDistributedDDLJob(DDLJob *ddlJob)
* snapshots via adaptive executor.
*/
set_indexsafe_procflags();
/*
* We should not have any CREATE INDEX commands go through the
* local backend as we signaled other backends that this backend
* is executing a "safe" index command (PROC_IN_SAFE_IC), which
* is NOT true, we are only faking postgres based on the reasoning
* given above.
*/
Assert(localExecutionSupported == false);
#endif
}