Changeset: 822a1265ff00 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/822a1265ff00
Modified Files:
monetdb5/mal/mal.c
Branch: default
Log Message:
Initialize tl_client_key also when calling getClientContext.
This makes embedded initialization work.
diffs (21 lines):
diff --git a/monetdb5/mal/mal.c b/monetdb5/mal/mal.c
--- a/monetdb5/mal/mal.c
+++ b/monetdb5/mal/mal.c
@@ -64,6 +64,8 @@ initialize_tl_client_key(void)
Client
getClientContext(void)
{
+ if (initialize_tl_client_key())
+ return NULL;
return (Client) pthread_getspecific(tl_client_key);
}
@@ -103,6 +105,8 @@ initialize_tl_client_key(void)
Client
getClientContext(void)
{
+ if (initialize_tl_client_key())
+ return NULL;
return (Client) TlsGetValue(tl_client_key);
}
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]