Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4655/src/mal

Modified Files:
      Tag: MonetDB_5-2
        mal_client.mx 
Log Message:
fixed concurrency bug. (or simply enable the locks when needed)


Index: mal_client.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_client.mx,v
retrieving revision 1.158.2.3
retrieving revision 1.158.2.4
diff -u -d -r1.158.2.3 -r1.158.2.4
--- mal_client.mx       29 Oct 2007 07:10:36 -0000      1.158.2.3
+++ mal_client.mx       4 Nov 2007 17:47:44 -0000       1.158.2.4
@@ -349,18 +349,19 @@
        GDKfree(x);
 }
 
-static Client MCnewClient(){
+static Client MCnewClient()
+{
        Client  c;
-       if( mal_clients[CONSOLE].user)
+       if (mal_clients[CONSOLE].mode)
                GDKprotect();
        mal_set_lock(mal_contextLock, "newClient");
-       if( mal_clients[CONSOLE].user &&
-                       mal_clients[CONSOLE].mode == FINISHING){
+       if (mal_clients[CONSOLE].user &&
+           mal_clients[CONSOLE].mode == FINISHING) {
                showException(MAL,"newClient", "system shutdown in progress");
                mal_unset_lock(mal_contextLock, "newClient");
                return NULL;
        }
-       for(c = mal_clients; c < mal_clients+MAL_MAXCLIENTS; c++) {
+       for (c = mal_clients; c < mal_clients+MAL_MAXCLIENTS; c++) {
                if (c->mode == FREECLIENT) {
                        c->mode= CLAIMED;
                        break;


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to