Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv5108
Modified Files:
sql_scenario.mx
Log Message:
Awake the master to replay the log.
Index: sql_scenario.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_scenario.mx,v
retrieving revision 1.362
retrieving revision 1.363
diff -u -d -r1.362 -r1.363
--- sql_scenario.mx 2 Nov 2009 09:09:43 -0000 1.362
+++ sql_scenario.mx 7 Nov 2009 10:08:01 -0000 1.363
@@ -84,6 +84,7 @@
#include "optimizer.h"
#include "opt_statistics.h"
#include "opt_prelude.h"
+#include "replication.h"
#include <unistd.h>
static int SQLinitialized = 0;
@@ -199,7 +200,12 @@
if (tmp != MAL_SUCCEED)
return(tmp);
ms->name = "msql";
- return SABAOTHmarchScenario(&res, &ms->name);
+ tmp = SABAOTHmarchScenario(&res, &ms->name);
+ /* if we are a slave, then inform the master to forward
+ any pending updates. */
+ if ( tmp == MAL_SUCCEED && GDKgetenv("replication_slave"))
+ return SLAVEsyncDefault(&res);
+ return tmp;
}
str
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins