Rename to RelationListHasRelationConvertedByUser

talha_tes1
Ahmet Gedemenli 2021-10-25 18:47:29 +03:00
parent faee21bff9
commit cc465033eb
1 changed files with 4 additions and 4 deletions

View File

@ -79,7 +79,7 @@ static bool RelationIdListContainsCitusTableType(List *relationIdList,
static bool RelationIdListContainsPostgresTable(List *relationIdList); static bool RelationIdListContainsPostgresTable(List *relationIdList);
static void ConvertPostgresLocalTablesToCitusLocalTables( static void ConvertPostgresLocalTablesToCitusLocalTables(
AlterTableStmt *alterTableStatement); AlterTableStmt *alterTableStatement);
static bool AnyConnectedRelationIsNotAutoConverted(List *relationRangeVarList, static bool RelationListHasRelationConvertedByUser(List *relationRangeVarList,
AlterTableStmt *alterTableStatement); AlterTableStmt *alterTableStatement);
static int CompareRangeVarsByOid(const void *leftElement, const void *rightElement); static int CompareRangeVarsByOid(const void *leftElement, const void *rightElement);
static List * GetAlterTableAddFKeyRightRelationIdList( static List * GetAlterTableAddFKeyRightRelationIdList(
@ -1299,7 +1299,7 @@ ConvertPostgresLocalTablesToCitusLocalTables(AlterTableStmt *alterTableStatement
bool autoConverted = true; bool autoConverted = true;
if (AnyConnectedRelationIsNotAutoConverted(relationRangeVarList, alterTableStatement)) if (RelationListHasRelationConvertedByUser(relationRangeVarList, alterTableStatement))
{ {
autoConverted = false; autoConverted = false;
} }
@ -1402,13 +1402,13 @@ ConvertPostgresLocalTablesToCitusLocalTables(AlterTableStmt *alterTableStatement
/* /*
* AnyConnectedRelationIsNotAutoConverted takes a list of relations and returns true * RelationListHasRelationConvertedByUser takes a list of relations and returns true
* if any of these relations is marked as auto-converted = false. Returns true otherwise. * if any of these relations is marked as auto-converted = false. Returns true otherwise.
* This function also takes the current alterTableStatement command, to obtain the * This function also takes the current alterTableStatement command, to obtain the
* necessary locks. * necessary locks.
*/ */
static bool static bool
AnyConnectedRelationIsNotAutoConverted(List *relationRangeVarList, RelationListHasRelationConvertedByUser(List *relationRangeVarList,
AlterTableStmt *alterTableStatement) AlterTableStmt *alterTableStatement)
{ {
RangeVar *relationRangeVar; RangeVar *relationRangeVar;