Update of /cvsroot/monetdb/MonetDB5/src/optimizer
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8936/src/optimizer

Modified Files:
        opt_replicator.mx 
Log Message:
Test update for new replicator commands.


Index: opt_replicator.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/opt_replicator.mx,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- opt_replicator.mx   28 Feb 2008 14:14:28 -0000      1.21
+++ opt_replicator.mx   28 Feb 2008 15:04:48 -0000      1.22
@@ -357,17 +357,22 @@
                                pushInstruction(mb,p);
                                rep[getArg(p,0)] = 1;
                } else {        
-                       if(no_pr && rprof == 1 &&
-                               getModuleId(p)== sqlRef && 
-                               getFunctionId(p)==resultSetRef){
+                       if((getModuleId(p)== sqlRef && 
+                               getFunctionId(p)==resultSetRef) ||
+                               p->token == ENDsymbol){
+                               if( rs == 1){
                                        q = newStmt(mb,"replicator","stop");    
                                        rs = 0;
+                               }
+                               if (no_pr && rprof == 1){
                                        q = newStmt(mb,"profiler","stop");      
                                        rprof = 0;
+                               }
                        }
                        pushInstruction(mb,p);
                }
        }
+
        for(; i<slimit; i++)
        if(old[i])
                freeInstruction(old[i]);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to