Changeset: 7613b55dcd37 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7613b55dcd37
Modified Files:
monetdb5/optimizer/opt_pipes.c
Branch: Apr2012
Log Message:
When cleaning up temporary client record, don't take down thread info.
diffs (21 lines):
diff --git a/monetdb5/optimizer/opt_pipes.c b/monetdb5/optimizer/opt_pipes.c
--- a/monetdb5/optimizer/opt_pipes.c
+++ b/monetdb5/optimizer/opt_pipes.c
@@ -636,11 +636,17 @@ compileOptimizer(Client cntxt, str name)
MSinitClientPrg(c, "user", pipes[j].name);
msg = compileString(&sym, c, pipes[j].def);
if ( msg != MAL_SUCCEED){
+ c->errbuf = NULL;
+ c->mythread = 0;
MCcloseClient(c);
return msg;
}
pipes[j].mb = copyMalBlk(sym->def);
}
+ /* don't cleanup thread info since the thread continues to
+ * exist, just this client record is closed */
+ c->errbuf = NULL;
+ c->mythread = 0;
MCcloseClient(c);
msg = validateOptimizerPipes();
if ( msg != MAL_SUCCEED)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list