Update of /cvsroot/monetdb/sql/src/backends/monet5/merovingian
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv28361

Modified Files:
        ChangeLog merovingian_discoveryrunner.c 
Log Message:
No longer announce databases that are under maintenance, this allows them to be 
pulled out of the cluster easily

U merovingian_discoveryrunner.c
Index: merovingian_discoveryrunner.c
===================================================================
RCS file: 
/cvsroot/monetdb/sql/src/backends/monet5/merovingian/merovingian_discoveryrunner.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- merovingian_discoveryrunner.c       19 Aug 2009 13:53:05 -0000      1.1
+++ merovingian_discoveryrunner.c       9 Sep 2009 11:55:13 -0000       1.2
@@ -78,7 +78,8 @@
                                readProps(ckv, stats->path);
                                kv = findConfKey(ckv, "shared");
                                val = kv->val == NULL ? "" : kv->val;
-                               if (strcmp(val, "no") != 0) {
+                               /* skip databases under maintenance */
+                               if (strcmp(val, "no") != 0 && stats->locked != 
1) {
                                        /* craft ANNC message for this db */
                                        if (strcmp(val, "yes") == 0)
                                                val = "";

U ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian/ChangeLog,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- ChangeLog   4 Sep 2009 09:45:11 -0000       1.23
+++ ChangeLog   9 Sep 2009 11:55:13 -0000       1.24
@@ -1,6 +1,10 @@
 # ChangeLog file for sql/src/backends/monet5
 # This file is updated with mchangelog (Gentoo echangelog bastard script)
 
+  09 Sep 2009; Fabian Groffen <[email protected]> merovingian_discoveryrunner.c:
+  No longer announce databases that are under maintenance, this allows them to
+  be pulled out of the cluster easily
+
   04 Sep 2009; Fabian Groffen <[email protected]> merovingian_forkmserver.c,
   monetdb.c, monetdb_get.c, properties.c:
   Add master property of boolean value that translates into


------------------------------------------------------------------------------
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

Reply via email to