Changeset: 6aa6236d8343 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6aa6236d8343
Modified Files:
        MonetDB5/src/optimizer/opt_replication.mx
Branch: default
Log Message:

replication_master contains the master (UU)ID, not a boolean


diffs (19 lines):

diff -r 02250651bd9b -r 6aa6236d8343 MonetDB5/src/optimizer/opt_replication.mx
--- a/MonetDB5/src/optimizer/opt_replication.mx Fri Jul 16 15:27:32 2010 +0200
+++ b/MonetDB5/src/optimizer/opt_replication.mx Fri Jul 16 15:26:28 2010 +0200
@@ -52,12 +52,14 @@
 {
        int i, tag, limit, slimit, actions = 0;
        InstrPtr q, p = 0, *old = mb->stmt;
+       str masterid = NULL;
 
        (void)pci;
        (void)stk;              /* to fool compilers */
        (void)cntxt;
 
-       if (!GDKgetenv_istrue("replication_master"))
+       masterid = GDKgetenv("replication_master");
+       if (masterid == NULL || strcmp(masterid, "false") == 0)
                return 0;
 
        limit = mb->stop;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to