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

Modified Files:
        ChangeLog monetdb.c 
Log Message:
monetdb destroy now allows to remove a database under maintenance.  This way an 
administrator can prevent users connecting to the database and hence starting 
it on demand, which in turn prevents removal of the database.

U monetdb.c
Index: monetdb.c
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian/monetdb.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- monetdb.c   31 Jul 2009 11:15:31 -0000      1.27
+++ monetdb.c   31 Jul 2009 11:17:43 -0000      1.28
@@ -1518,14 +1518,6 @@
                                hadwork = 1;
                                continue;
                        }
-                       if (stats->locked == 1) {
-                               fprintf(stderr, "destroy: database '%s' is 
under maintenance"
-                                               ", release database first\n", 
dbname);
-                               SABAOTHfreeStatus(&stats);
-                               state |= 1;
-                               hadwork = 1;
-                               continue;
-                       }
 
                        /* annoyingly we have to delete file by file, and
                         * directories recursively... */

U ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/merovingian/ChangeLog,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- ChangeLog   21 Jul 2009 12:30:14 -0000      1.17
+++ ChangeLog   31 Jul 2009 11:17:43 -0000      1.18
@@ -1,6 +1,11 @@
 # ChangeLog file for sql/src/backends/monet5
 # This file is updated with mchangelog (Gentoo echangelog bastard script)
 
+  31 Jul 2009; Fabian Groffen <[email protected]> monetdb.c:
+  monetdb destroy now allows to remove a database under maintenance. This way
+  an administrator can prevent users connecting to the database and hence
+  starting it on demand, which in turn prevents removal of the database.
+
   21 Jul 2009; Fabian Groffen <[email protected]> merovingian.1,
   merovingian.c, monetdb.1, monetdb.c:
   Implemented sharing of databases with tags. Using these tags, extra


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