Changeset: 602e3a06d7ef for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=602e3a06d7ef
Modified Files:
sql/storage/store.c
Branch: transaction-replication
Log Message:
Initialize the store if the DB is slave, even in read-only mode if logs are
re-read.
The store must be initialized otherwise transaction replication will fail (for
a while) with re-reading the WAL.
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;
- /* 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) {
+ 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) {
return -1;
}
tr = sql_trans_create(stk, NULL, NULL);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list