Changeset: 6b20fa4371a4 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6b20fa4371a4
Modified Files:
        monetdb5/optimizer/opt_iot.c
        monetdb5/optimizer/opt_pipes.c
Branch: iot
Log Message:

Avoid freeing buffers
and unnecessary tumblings


diffs (28 lines):

diff --git a/monetdb5/optimizer/opt_iot.c b/monetdb5/optimizer/opt_iot.c
--- a/monetdb5/optimizer/opt_iot.c
+++ b/monetdb5/optimizer/opt_iot.c
@@ -182,7 +182,7 @@ OPTiotImplementation(Client cntxt, MalBl
                        if (p->token == ENDsymbol && btop > 0 && noerror==0) {
                                // empty all baskets used only when we are 
optimizing a cq
                                for(j = 0; j < btop; j++)
-                               if( input[j] ){
+                               if( input[j] && !output[j] ){
                                        r =  newStmt(mb, basketRef, tumbleRef);
                                        r =  pushArgument(mb,r, lastmvc);
                                        r =  pushStr(mb,r, schemas[j]);
diff --git a/monetdb5/optimizer/opt_pipes.c b/monetdb5/optimizer/opt_pipes.c
--- a/monetdb5/optimizer/opt_pipes.c
+++ b/monetdb5/optimizer/opt_pipes.c
@@ -483,9 +483,9 @@ compileOptimizer(Client cntxt, str name)
                        /* we must clear c.mythread because we're reusing a 
Thread
                         * and must not delete that one */
                        c.mythread = 0;
-                       /* destroy bstream using free */
-                       free(c.fdin->buf);
-                       free(c.fdin);
+                       /* WHY? destroy bstream using free */
+                       //free(c.fdin->buf);
+                       //free(c.fdin);
                        /* remove garbage from previous connection */
                        if (c.nspace) {
                                freeModule(c.nspace);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to