mirror of https://github.com/citusdata/citus.git
Fix indentation for shell table func
parent
427bdf08a0
commit
5e2e5c3470
|
@ -1775,12 +1775,13 @@ CreateShellTableOnWorkers(Oid relationId)
|
||||||
{
|
{
|
||||||
/* if the table is owned by an extension we don't create */
|
/* if the table is owned by an extension we don't create */
|
||||||
bool tableOwnedByExtension = IsTableOwnedByExtension(relationId);
|
bool tableOwnedByExtension = IsTableOwnedByExtension(relationId);
|
||||||
|
if (tableOwnedByExtension)
|
||||||
if (!tableOwnedByExtension)
|
|
||||||
{
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
List *commandList = NIL;
|
List *commandList = NIL;
|
||||||
IncludeSequenceDefaults includeSequenceDefaults =
|
IncludeSequenceDefaults includeSequenceDefaults = WORKER_NEXTVAL_SEQUENCE_DEFAULTS;
|
||||||
WORKER_NEXTVAL_SEQUENCE_DEFAULTS;
|
|
||||||
|
|
||||||
List *tableDDLCommands = GetFullTableCreationCommands(relationId,
|
List *tableDDLCommands = GetFullTableCreationCommands(relationId,
|
||||||
includeSequenceDefaults);
|
includeSequenceDefaults);
|
||||||
|
@ -1798,13 +1799,11 @@ CreateShellTableOnWorkers(Oid relationId)
|
||||||
/* prevent recursive propagation */
|
/* prevent recursive propagation */
|
||||||
SendCommandToWorkersWithMetadata(DISABLE_DDL_PROPAGATION);
|
SendCommandToWorkersWithMetadata(DISABLE_DDL_PROPAGATION);
|
||||||
|
|
||||||
/* send the commands one by one */
|
|
||||||
const char *command = NULL;
|
const char *command = NULL;
|
||||||
foreach_ptr(command, commandList)
|
foreach_ptr(command, commandList)
|
||||||
{
|
{
|
||||||
SendCommandToWorkersWithMetadata(command);
|
SendCommandToWorkersWithMetadata(command);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue