Changeset: cebcae223a74 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=cebcae223a74
Modified Files:
gdk/gdk_logger.c
Branch: transaction-replication
Log Message:
Fix an off-by-one when conting the WAL files to be processed for the non-shared
gdk_logger.
This fixes the (transaction-replicaion branch only) issue that the master DB
will not process that last unprocess WAL file.
diffs (12 lines):
diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -1001,7 +1001,7 @@ logger_readlogs(logger *lg, FILE *fp, ch
fprintf(stderr, "#logger_readlogs last logger id
written in %s is " LLFMT "\n", filename, lid);
}
- while(lid > lg->id && res != LOG_ERR) {
+ while((lg->shared && lid > lg->id && res != LOG_ERR) ||
(!lg->shared && lid >= lg->id && res != LOG_ERR)) {
snprintf(log_filename, BUFSIZ, "%s." LLFMT, filename,
lg->id);
if ((logger_readlog(lg, log_filename)) == LOG_ERR &&
lg->shared && lg->id > 1) {
/* we cannot distinguish errors from
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list