Changeset: d1c83b93db1f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d1c83b93db1f
Modified Files:
sql/src/storage/store.mx
Branch: Oct2010
Log Message:
Bail out early when asked to create database in read-only mode.
This fixes bug 2695.
diffs (13 lines):
diff -r 950d67c7c2b3 -r d1c83b93db1f sql/src/storage/store.mx
--- a/sql/src/storage/store.mx Mon Oct 18 10:44:54 2010 +0200
+++ b/sql/src/storage/store.mx Mon Oct 18 11:33:24 2010 +0200
@@ -1309,6 +1309,9 @@
gtrans = tr = create_trans(stk);
if (logger_funcs.log_isnew()) {
+ /* cannot initialize database in readonly mode */
+ if (store == store_ro)
+ return -1;
tr = sql_trans_create(stk, NULL, NULL);
} else {
first = 0;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list