Changeset: 05f2699ec7a1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=05f2699ec7a1
Modified Files:
        monetdb5/optimizer/opt_support.c
Branch: default
Log Message:

Always keep the optimizer effects with the plan


diffs (34 lines):

diff --git a/monetdb5/optimizer/opt_support.c b/monetdb5/optimizer/opt_support.c
--- a/monetdb5/optimizer/opt_support.c
+++ b/monetdb5/optimizer/opt_support.c
@@ -210,6 +210,7 @@ OPTsetDebugStr(void *ret, str *nme)
 str
 optimizerCheck(Client cntxt, MalBlkPtr mb, str name, int actions, lng usec)
 {
+       char buf[256];
        if (cntxt->mode == FINISHCLIENT)
                throw(MAL, name, "prematurely stopped client");
        if( actions > 0){
@@ -217,16 +218,14 @@ optimizerCheck(Client cntxt, MalBlkPtr m
                chkFlow(cntxt->fdout, mb);
                chkDeclarations(cntxt->fdout, mb);
        }
-       if( cntxt->debugOptimizer){
-               /* keep the actions taken as a post block comments */
-               char buf[BUFSIZ];
-               sprintf(buf,"%-20s actions=%2d time=" LLFMT " 
usec",name,actions,usec);
-               newComment(mb,buf);
-               if (mb->errors)
-                       throw(MAL, name, PROGRAM_GENERAL);
-       }
+       /* keep all actions taken as a post block comments */
+       snprintf(buf,256,"%-20s actions=%2d time=" LLFMT " 
usec",name,actions,usec);
+       newComment(mb,buf);
+       if (mb->errors)
+               throw(MAL, name, PROGRAM_GENERAL);
        return MAL_SUCCEED;
 }
+
 /*
  * Limit the loop count in the optimizer to guard against indefinite
  * recursion, provided the optimizer does not itself generate
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to