add THR_LOCAL for global var

This commit is contained in:
movead
2021-04-09 11:32:29 +08:00
parent 6f1a78b6e6
commit 785faf8914
2 changed files with 5 additions and 3 deletions

View File

@ -112,8 +112,8 @@ static int applyRemoteGucs(PGconn* conn);
static void restoreLocalGucs(int nestlevel);
/* Global */
static remoteConn* pconn = NULL;
static HTAB* remoteConnHash = NULL;
static THR_LOCAL remoteConn* pconn = NULL;
static THR_LOCAL HTAB* remoteConnHash = NULL;
/*
* Following is list that holds multiple remote connections.

View File

@ -5,7 +5,6 @@
# this limits the number of connections needed to run the tests.
# ----------
test: dblink
test: analyze_commands
#test: single_node_job
test: single_node_ddl
@ -761,3 +760,6 @@ test: leaky_function_operator
#test: gs_guc
test: smp
# dblink contrib test
test: dblink