Changeset: ec42da8338ae for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ec42da8338ae
Modified Files:
        monetdb5/scheduler/mut_policy.c
Branch: mutation
Log Message:

Just typos


diffs (39 lines):

diff --git a/monetdb5/scheduler/mut_policy.c b/monetdb5/scheduler/mut_policy.c
--- a/monetdb5/scheduler/mut_policy.c
+++ b/monetdb5/scheduler/mut_policy.c
@@ -110,7 +110,7 @@ MUTpolicyBaseline(Client cntxt, Mutant m
        ssize = src->ssize;
 
        /* apply transformation heuristics */
-       if ( getModuleId(p) && strncmp(getModuleId(p), "algebra",7)== 0)
+       if ( getModuleId(p) == algebraRef)
        {
                if(getFunctionId(p) == joinRef)
                        mutationJoin(cntxt,m);
@@ -118,10 +118,11 @@ MUTpolicyBaseline(Client cntxt, Mutant m
                        mutationSelect(cntxt,m);
                else if(getFunctionId(p) == leftfetchjoinRef)
                                mutationLeftFetchJoin(cntxt,m);
-       }
-       if ( getModuleId(p) && strncmp(getModuleId(p), "aggr",4)== 0)
+       } else
+       if ( getModuleId(p) == aggrRef)
                mutationSum(cntxt,m);
-       if ( getModuleId(p) && strncmp(getModuleId(p), "mat",3)== 0 && 
getFunctionId(p) == packRef)
+       else
+       if ( getModuleId(p) == matRef && getFunctionId(p) == packRef)
                        mutationPack(cntxt,m);
 
        /* reset/expand the profiler */
@@ -139,8 +140,10 @@ MUTpolicyBaseline(Client cntxt, Mutant m
        chkProgram(cntxt->fdout,cntxt->nspace,src);
        chkFlow(cntxt->fdout,src);
        malGarbageCollector(src);
-       DEBUG_MULTICORE
+       DEBUG_MULTICORE{
+               mnstr_printf(cntxt->fdout,"Final plan to execute, errors 
%d\n",src->errors);
                printFunction(cntxt->fdout, src,0,LIST_MAL_ALL);
+       }
        if ( src->errors)
                return -1;
        return 1;
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to