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

Modified Files:
        mal.mx 
Log Message:
corrected checks for busy clients when exiting


Index: mal.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal.mx,v
retrieving revision 1.125
retrieving revision 1.126
diff -u -d -r1.125 -r1.126
--- mal.mx      1 Jun 2007 06:48:28 -0000       1.125
+++ mal.mx      1 Jun 2007 09:48:20 -0000       1.126
@@ -391,10 +391,10 @@
        do{
                freeclient=0; finishing=0; claimed=0; awaiting=0;
                for(cntxt= mal_clients+1;  cntxt<mal_clients+MAL_MAXCLIENTS; 
cntxt++){
-                       freeclient += cntxt->mode & FREECLIENT;
-                       finishing += cntxt->mode & FINISHING;
-                       claimed += cntxt->mode & CLAIMED;
-                       awaiting += cntxt->mode & AWAITING;
+                       freeclient += (cntxt->mode == FREECLIENT);
+                       finishing += (cntxt->mode == FINISHING);
+                       claimed += (cntxt->mode == CLAIMED);
+                       awaiting += (cntxt->mode == AWAITING);
                        if( cntxt->mode & FINISHING)
                                printf("#CLient %d %d\n",(int)(cntxt - 
mal_clients), cntxt->idx);
                }


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to