Changeset: 88e08b7a40f2 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/88e08b7a40f2
Modified Files:
        tools/monetdbe/monetdbe.c
Branch: default
Log Message:

Test that registering the thread succeeded.


diffs (15 lines):

diff --git a/tools/monetdbe/monetdbe.c b/tools/monetdbe/monetdbe.c
--- a/tools/monetdbe/monetdbe.c
+++ b/tools/monetdbe/monetdbe.c
@@ -545,7 +545,10 @@ monetdbe_open_internal(monetdbe_database
                goto cleanup;
        }
        if (!mdbe->registered_thread) {
-               MT_thread_register();
+               if (!MT_thread_register()) {
+                       set_error(mdbe, createException(MAL, 
"monetdbe.monetdbe_open_internal", "Embedded MonetDB is not started"));
+                       goto cleanup;
+               }
                mdbe->registered_thread = 1;
        }
        mdbe->c = MCinitClient((oid) 0, 0, 0);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to