mirror of https://github.com/citusdata/citus.git
Fix isolation tester
parent
8b04e37b73
commit
bfd5ca0216
|
@ -14,7 +14,6 @@
|
||||||
#include "distributed/citus_safe_lib.h"
|
#include "distributed/citus_safe_lib.h"
|
||||||
#include "distributed/connection_management.h"
|
#include "distributed/connection_management.h"
|
||||||
#include "distributed/metadata_cache.h"
|
#include "distributed/metadata_cache.h"
|
||||||
#include "distributed/run_from_same_connection.h"
|
|
||||||
#include "distributed/worker_manager.h"
|
#include "distributed/worker_manager.h"
|
||||||
|
|
||||||
#include "postmaster/postmaster.h"
|
#include "postmaster/postmaster.h"
|
||||||
|
@ -235,11 +234,9 @@ 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,
|
appendStringInfo(applicationName, "%s%ld", CITUS_APPLICATION_NAME_PREFIX,
|
||||||
GetGlobalPID());
|
GetGlobalPID());
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function has three sections:
|
* This function has three sections:
|
||||||
* - Initialize the keywords and values (to be copied later) of global parameters
|
* - Initialize the keywords and values (to be copied later) of global parameters
|
||||||
|
|
|
@ -119,10 +119,11 @@ start_session_level_connection_to_node(PG_FUNCTION_ARGS)
|
||||||
values[0] = nodeNameString;
|
values[0] = nodeNameString;
|
||||||
|
|
||||||
keywords[1] = "port";
|
keywords[1] = "port";
|
||||||
char *portSTR = (char *) palloc(10);
|
|
||||||
pg_ultoa_n(nodePort, portSTR);
|
|
||||||
|
|
||||||
values[1] = portSTR;
|
StringInfo str = makeStringInfo();
|
||||||
|
appendStringInfo(str, "%d", nodePort);
|
||||||
|
|
||||||
|
values[1] = str->data;
|
||||||
|
|
||||||
keywords[2] = "dbname";
|
keywords[2] = "dbname";
|
||||||
values[2] = (char *) CurrentDatabaseName();
|
values[2] = (char *) CurrentDatabaseName();
|
||||||
|
|
Loading…
Reference in New Issue