Changeset: ae4fce4bb4e9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ae4fce4bb4e9
Modified Files:
        gdk/gdk_logger.c
Branch: pax-log
Log Message:

Use offset = -1 to indicate this bat was logged in parts.


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
@@ -2493,7 +2493,7 @@ internal_log_bat(logger *lg, BAT *b, log
                if (log_write_format(lg, &l) != GDK_SUCCEED ||
                        (!is_row && !mnstr_writeLng(lg->output_log, total_cnt)) 
||
                        (!is_row && mnstr_write(lg->output_log, &tpe, 1, 1) != 
1) ||
-                       (!is_row && !mnstr_writeLng(lg->output_log, offset))) {
+                       (!is_row && !mnstr_writeLng(lg->output_log, 
total_cnt?-1:offset))) { /* offset = -1 indicates bat was logged in parts */
                        ok = GDK_FAIL;
                        goto bailout;
                }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to