Changeset: 863434208284 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=863434208284
Modified Files:
sql/backends/monet5/datacell/petrinet.c
Branch: default
Log Message:
Test for initialized context first
diffs (13 lines):
diff --git a/sql/backends/monet5/datacell/petrinet.c
b/sql/backends/monet5/datacell/petrinet.c
--- a/sql/backends/monet5/datacell/petrinet.c
+++ b/sql/backends/monet5/datacell/petrinet.c
@@ -473,7 +473,8 @@ PNcontroller(void *dummy)
char buf[BUFSIZ], *modnme, *fcnnme;
cntxt = mal_clients; /* run as admin */
- SQLinitEnvironment(cntxt);
+ if ( !SQLinitialized)
+ SQLinitEnvironment(cntxt);
/* At this point we know what is the total number of factories.
* The most extremely case is when ALL factories are enable to fire
* so the maximum space we could ever need is = #factories (=pnettop)*/
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list