Changeset: 5620ef6038ca for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5620ef6038ca
Modified Files:
gdk/gdk_logger.c
Branch: transaction-replication
Log Message:
(Re-)read the last WAL entry.
This should be fine since it might've been never read in full before, as the
master might have had it open but not written much in the file. The master can
"top it up" later and then rollforward.
diffs (21 lines):
diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -967,9 +967,7 @@ logger_readlogs(logger *lg, FILE *fp, ch
}
while(lid > lg->id) {
- lg->id++;
snprintf(buf, BUFSIZ, "%s." LLFMT, filename, lg->id);
-
if ((res = logger_readlog(lg, buf)) != 0) {
/* we cannot distinguish errors from
* incomplete transactions (even if we
@@ -978,6 +976,7 @@ logger_readlogs(logger *lg, FILE *fp, ch
* next log file */
(void) res;
}
+ lg->id++;
}
/* if this is a shared logger, write the id in the shared file
*/
if (lg->shared) {
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list