Changeset: 9ff44367bf1d for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9ff44367bf1d Modified Files: monetdb5/optimizer/opt_multiplex.c Branch: Jul2015 Log Message:
Use a single warning when a bulk operation is missing Now only 1 message is left behind in the log per mserver session. Fixes bug #3923 while retaining a hint. 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 @@ -33,6 +33,7 @@ static str OPTexpandMultiplex(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci) { + static int warning = 0; int i = 2, iter = 0; int hvar, tvar; str mod, fcn; @@ -58,10 +59,11 @@ OPTexpandMultiplex(Client cntxt, MalBlkP mod = putName(mod,strlen(mod)); fcn = VALget(&getVar(mb, getArg(pci, pci->retc+1))->value); fcn = putName(fcn,strlen(fcn)); -#ifndef NDEBUG - mnstr_printf(GDKstdout,"#WARNING To speedup %s.%s a bulk operator implementation is needed\n#", mod,fcn); - printInstruction(GDKstdout, mb, stk, pci, LIST_MAL_DEBUG); -#endif + if( warning == 0){ + mnstr_printf(GDKstdout,"#WARNING To speedup %s.%s a bulk operator implementation is needed\n#", mod,fcn); + printInstruction(GDKstdout, mb, stk, pci, LIST_MAL_DEBUG); + warning++; + } /* search the iterator bat */ for (i = pci->retc+2; i < pci->argc; i++) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list