mirror of https://github.com/citusdata/citus.git
Fix isolation tester
parent
3c5a146ae1
commit
45b1d04850
|
@ -234,8 +234,15 @@ GetConnParams(ConnectionHashKey *key, char ***keywords, char ***values,
|
||||||
char nodePortString[12] = "";
|
char nodePortString[12] = "";
|
||||||
|
|
||||||
StringInfo applicationName = makeStringInfo();
|
StringInfo applicationName = makeStringInfo();
|
||||||
appendStringInfo(applicationName, "%s%ld", CITUS_APPLICATION_NAME_PREFIX,
|
if (AllowNonIdleTransactionOnXactHandling())
|
||||||
GetGlobalPID());
|
{
|
||||||
|
appendStringInfoString(applicationName, "citus isolation test");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
appendStringInfo(applicationName, "%s%ld", CITUS_APPLICATION_NAME_PREFIX,
|
||||||
|
GetGlobalPID());
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function has three sections:
|
* This function has three sections:
|
||||||
|
|
|
@ -104,8 +104,9 @@ start_session_level_connection_to_node(PG_FUNCTION_ARGS)
|
||||||
*/
|
*/
|
||||||
if (singleConnection == NULL)
|
if (singleConnection == NULL)
|
||||||
{
|
{
|
||||||
singleConnection = GetNodeConnection(connectionFlags, nodeNameString, nodePort);
|
|
||||||
allowNonIdleRemoteTransactionOnXactHandling = true;
|
allowNonIdleRemoteTransactionOnXactHandling = true;
|
||||||
|
|
||||||
|
singleConnection = GetNodeConnection(connectionFlags, nodeNameString, nodePort);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PQstatus(singleConnection->pgConn) != CONNECTION_OK)
|
if (PQstatus(singleConnection->pgConn) != CONNECTION_OK)
|
||||||
|
|
Loading…
Reference in New Issue