Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16803/src/backends/monet5

Modified Files:
        sql_scenario.mx 
Log Message:
propagated changes of Saturday Oct 31 2009 - Monday Nov 02 2009
from the Nov2009 branch to the development trunk

  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2009/10/31 - mlkersten: src/backends/monet5/sql_scenario.mx,1.356.2.11
  We better protect the optimizer global structures against concurrent
  access.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: sql_scenario.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_scenario.mx,v
retrieving revision 1.361
retrieving revision 1.362
diff -u -d -r1.361 -r1.362
--- sql_scenario.mx     30 Oct 2009 21:42:15 -0000      1.361
+++ sql_scenario.mx     2 Nov 2009 09:09:43 -0000       1.362
@@ -56,6 +56,7 @@
 sql5_export str SQLtrace(int *ret);
 sql5_export str SQLCacheRemove(Client c, str nme);
 
+sql5_export MT_Lock sql_contextLock;
 #endif /* _SQL_SCENARIO_H_ */
 
 @+ Scenario routines
@@ -88,6 +89,7 @@
 static int SQLinitialized = 0;
 static int SQLdebug = 0;
 static char *sqlinit = NULL;
+MT_Lock sql_contextLock;
 
 static void
 monet5_freestack(int clientid, backend_stack stk)
@@ -236,6 +238,8 @@
        if (SQLinitialized)
                return MAL_SUCCEED;
 
+       MT_lock_init( &sql_contextLock, "sql_contextLock");
+
        memset((char*)&be_funcs, 0, sizeof(backend_functions));
        be_funcs.fstack         = &monet5_freestack;
        be_funcs.fcode          = &monet5_freecode;


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to