Changeset: 743aa25a2ee0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/743aa25a2ee0
Modified Files:
        monetdb5/mal/mal.c
Branch: default
Log Message:

Fix misunderstanding about the return value of TlsSetValue


diffs (12 lines):

diff --git a/monetdb5/mal/mal.c b/monetdb5/mal/mal.c
--- a/monetdb5/mal/mal.c
+++ b/monetdb5/mal/mal.c
@@ -112,7 +112,7 @@ setClientContext(Client cntxt)
 {
        Client old = getClientContext();
 
-       if (TlsSetValue(tl_client_key, cntxt) != 0)
+       if (TlsSetValue(tl_client_key, cntxt) == 0)
                GDKfatal("Failed to set thread local Client context");
 
        return old;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to