Merge pull request #4513 from citusdata/fix-tableconversionreturn-warning

Fixes tableConversionReturn Redefinition Warning
pull/4516/head^2
Halil Ozan Akgül 2021-01-15 11:58:14 +03:00 committed by GitHub
commit 4d204320d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 15 deletions

View File

@ -67,20 +67,6 @@
"a foreign key relationship with %s by executing SELECT " \
"undistribute_table($$%s$$, cascade_via_foreign_keys=>true)"
typedef struct TableConversionReturn
{
/*
* commands to create foreign keys for the table
*
* When the table conversion is cascaded we can recreate
* some of the foreign keys of the cascaded tables. So with this
* list we can return it to the initial conversion operation so
* foreign keys can be created after every colocated table is
* converted.
*/
List *foreignKeyCommands;
}TableConversionReturn;
typedef TableConversionReturn *(*TableConversionFunction)(struct
TableConversionParameters *);

View File

@ -155,7 +155,19 @@ typedef struct TableConversionParameters
bool cascadeViaForeignKeys;
} TableConversionParameters;
typedef struct TableConversionReturn TableConversionReturn;
typedef struct TableConversionReturn
{
/*
* commands to create foreign keys for the table
*
* When the table conversion is cascaded we can recreate
* some of the foreign keys of the cascaded tables. So with this
* list we can return it to the initial conversion operation so
* foreign keys can be created after every colocated table is
* converted.
*/
List *foreignKeyCommands;
}TableConversionReturn;
/* Config variable managed via guc.c */