Changeset: 13d7f20aaad1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=13d7f20aaad1
Modified Files:
        monetdb5/optimizer/opt_reorder.c
Branch: default
Log Message:

No need for re-order when mitosis/mergetable is skipped


diffs (28 lines):

diff --git a/monetdb5/optimizer/opt_reorder.c b/monetdb5/optimizer/opt_reorder.c
--- a/monetdb5/optimizer/opt_reorder.c
+++ b/monetdb5/optimizer/opt_reorder.c
@@ -279,7 +279,7 @@ OPTreorderImplementation(Client cntxt, M
        char buf[256];
        lng usec= GDKusec();
        str msg = MAL_SUCCEED;
-       if( isOptimizerUsed(mb, "mergetable") <= 0){
+       if( isOptimizerUsed(mb, "mitosis") <= 0){
                goto wrapup;
        }
        (void) cntxt;
@@ -339,7 +339,6 @@ OPTreorderImplementation(Client cntxt, M
        OPTremoveDep(dep, limit);
        GDKfree(uselist);
        GDKfree(old);
-wrapup:
        (void) OPTpostponeAppends(cntxt, mb, 0, 0);
 
        /* Defense line against incorrect plans */
@@ -349,6 +348,7 @@ wrapup:
        if (!msg)
                msg = chkDeclarations(mb);
        /* keep all actions taken as a post block comment */
+wrapup:
        usec = GDKusec()- usec;
        snprintf(buf,256,"%-20s actions=%2d time=" LLFMT " 
usec","reorder",1,usec);
        newComment(mb,buf);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to