Changeset: 142cfc5489d1 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=142cfc5489d1
Modified Files:
sql/storage/store.c
Branch: transaction-replication
Log Message:
Do not initialize a read-only DB, even a slave instance.
Treat the store are already initialized
diffs (18 lines):
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -1367,10 +1367,10 @@ store_init(int debug, store_type store,
store_readonly = readonly;
store_singleuser = singleuser;
- if (logger_funcs.log_isnew()) {
- /* cannot initialize database in readonly mode
- * unless this is a slave instance with a read-only/shared
logger */
- if (readonly && !create_shared_logger) {
+ /* treat read-only with shared logger as already initialized */
+ if (logger_funcs.log_isnew() && !create_shared_logger) {
+ /* cannot initialize database in readonly mode */
+ if (readonly) {
return -1;
}
tr = sql_trans_create(stk, NULL, NULL);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list