Update of /cvsroot/monetdb/MonetDB5/src/mal
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27458/mal
Modified Files:
mal_sabaoth.mx
Log Message:
Prepare for a maintenance mode. Use an enum instead of a number of
defines.
Index: mal_sabaoth.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_sabaoth.mx,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- mal_sabaoth.mx 24 Aug 2007 10:40:27 -0000 1.31
+++ mal_sabaoth.mx 28 Aug 2007 11:41:00 -0000 1.32
@@ -403,15 +403,18 @@
struct Ssablist* next; /* pointer to the next available value*/
} sablist;
-#define SABdbIllegal 0
-#define SABdbRunning 1
-#define SABdbCrashed 2
-#define SABdbInactive 3
+typedef enum {
+ SABdbIllegal = 0,
+ SABdbRunning,
+ SABdbCrashed,
+ SABdbInactive,
+ SABdbMaintenance
+} SABdbState;
typedef struct Ssabdb {
str dbname; /* database name as string */
/* str path; */
- short state; /* SABdbRunning, SABdbCrashed or SABdbInactive
*/
+ SABdbState state; /* current database state */
sablist* scens; /* scenarios available for this database */
sablist* conns; /* connections available for this database */
struct Ssabdb* next; /* next database */
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins