Changeset: d9816eec193a for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d9816eec193a Modified Files: sql/backends/monet5/sql_scenario.c Branch: Jul2015 Log Message:
When the first client initializes the catalog, others must wait. diffs (19 lines): diff --git a/sql/backends/monet5/sql_scenario.c b/sql/backends/monet5/sql_scenario.c --- a/sql/backends/monet5/sql_scenario.c +++ b/sql/backends/monet5/sql_scenario.c @@ -414,6 +414,7 @@ SQLinitClient(Client c) #endif if (SQLinitialized == 0 && (msg = SQLprelude(NULL)) != MAL_SUCCEED) return msg; + MT_lock_set(&sql_contextLock, "SQLinitClient"); /* * Based on the initialization return value we can prepare a SQLinit * string with all information needed to initialize the catalog @@ -526,6 +527,7 @@ SQLinitClient(Client c) SQLupgrades(c,m); maybeupgrade = 0; } + MT_lock_unset(&sql_contextLock, "SQLinitClient"); fflush(stdout); fflush(stderr); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list