Update of /cvsroot/monetdb/sql/src/storage
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16119
Modified Files:
Makefile.ag sql_storage.h store.mx
Log Message:
This checkin adds 3 new storage solutions, all should only be used
in restricted situtations
store_su (sql_debug&64)
'single user mode, all changes are directly applied
(one copy less)'
store_ro (sql_debug&32)
'read only access, no changes, ie not Update and insert bats'
store_suro ((sql_debug&96)==96)
(single user, read only)
Index: store.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/store.mx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- store.mx 11 Jan 2008 10:52:14 -0000 1.6
+++ store.mx 15 Jan 2008 10:40:24 -0000 1.7
@@ -28,6 +28,10 @@
#include <bat/bat_table.h>
#include <bat/bat_logger.h>
+#include <restrict/restrict_storage.h>
+#include <restrict/restrict_table.h>
+#include <restrict/restrict_logger.h>
+
#include <bpm/bpm_storage.h>
#include <bpm/bpm_table.h>
#include <bpm/bpm_logger.h>
@@ -1157,6 +1161,18 @@
bat_storage_init(&store_funcs);
bat_table_init(&table_funcs);
bat_logger_init(&logger_funcs);
+ } else if (store == store_su) {
+ su_storage_init(&store_funcs);
+ su_table_init(&table_funcs);
+ su_logger_init(&logger_funcs);
+ } else if (store == store_ro) {
+ ro_storage_init(&store_funcs);
+ ro_table_init(&table_funcs);
+ ro_logger_init(&logger_funcs);
+ } else if (store == store_suro) {
+ suro_storage_init(&store_funcs);
+ suro_table_init(&table_funcs);
+ suro_logger_init(&logger_funcs);
} else if (store == store_bpm) {
bpm_storage_init(&store_funcs);
bpm_table_init(&table_funcs);
Index: sql_storage.h
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/sql_storage.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- sql_storage.h 11 Jan 2008 10:52:14 -0000 1.45
+++ sql_storage.h 15 Jan 2008 10:40:23 -0000 1.46
@@ -31,8 +31,11 @@
#define isTempSchema(x) (strcmp(x->base.name,"tmp") == 0)
typedef enum store_type {
- store_bat,
- store_bpm
+ store_bat, /* delta bats, ie multi user read/write */
+ store_su, /* single user, read/write */
+ store_ro, /* multi user, read only */
+ store_suro, /* single user, read only */
+ store_bpm /* bat partition manager */
} store_type;
extern sql_trans *gtrans;
Index: Makefile.ag
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/Makefile.ag,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Makefile.ag 11 Jan 2008 10:52:14 -0000 1.11
+++ Makefile.ag 15 Jan 2008 10:40:23 -0000 1.12
@@ -20,7 +20,7 @@
EXTRA_DIST = sql_storage.h
-SUBDIRS = bat HAVE_MONETDB5?bpm HAVE_MONETDB4?m4
+SUBDIRS = bat restrict HAVE_MONETDB5?bpm HAVE_MONETDB4?m4
INCLUDES = ../include ../common $(MONETDB_INCS)
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins