Changeset: 570757f0ebb7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=570757f0ebb7
Modified Files:
monetdb5/optimizer/opt_multiplex.c
Branch: default
Log Message:
First assess before doing the work
diffs (27 lines):
diff --git a/monetdb5/optimizer/opt_multiplex.c
b/monetdb5/optimizer/opt_multiplex.c
--- a/monetdb5/optimizer/opt_multiplex.c
+++ b/monetdb5/optimizer/opt_multiplex.c
@@ -220,6 +220,15 @@ OPTmultiplexImplementation(Client cntxt,
(void) stk;
(void) pci;
+ for (i = 0; i < mb->stop; i++) {
+ p = getInstrPtr(mb,i);
+ if (isMultiplex(p)) {
+ break;
+ }
+ }
+ if( i == mb->stop){
+ goto wrapup;
+ }
old = mb->stmt;
limit = mb->stop;
@@ -263,6 +272,7 @@ OPTmultiplexImplementation(Client cntxt,
if (!msg)
msg = chkDeclarations(mb);
}
+wrapup:
/* keep all actions taken as a post block comment */
usec = GDKusec()- usec;
snprintf(buf,256,"%-20s actions=%2d time=" LLFMT "
usec","multiplex",actions, usec);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list