Changeset: f8d8379dc210 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f8d8379dc210
Modified Files:
        gdk/gdk_logger.c
Branch: Dec2023
Log Message:

Do not initialize tid to saved_tid on startup.
This wasn't done in the past and allowed transaction ids to start at 1
when the log was empty.  With the initialization, we cannot read log
files from a server that had started the id at 1.


diffs (11 lines):

diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -2363,7 +2363,6 @@ log_new(int debug, const char *fn, const
                .saved_id = getBBPlogno(),      /* get saved log numer from bbp 
*/
                .saved_tid = (int) getBBPtransid(),     /* get saved 
transaction id from bbp */
        };
-       lg->tid = lg->saved_tid;
 
        /* probably open file and check version first, then call call old 
logger code */
        if (snprintf(filename, sizeof(filename), "%s%c%s%c", logdir, DIR_SEP, 
fn, DIR_SEP) >= FILENAME_MAX) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to