Changeset: 236bb5c90b53 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/236bb5c90b53
Modified Files:
gdk/gdk_logger.c
Branch: Jul2021
Log Message:
also lock the log_constant call.
diffs (22 lines):
diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -2395,15 +2395,18 @@ log_constant(logger *lg, int type, ptr v
if (is_row)
l.flag = tpe;
+ logger_lock(lg);
if (log_write_format(lg, &l) != GDK_SUCCEED ||
(!is_row && !mnstr_writeLng(lg->output_log, nr)) ||
(!is_row && mnstr_write(lg->output_log, &tpe, 1, 1) != 1) ||
(!is_row && !mnstr_writeLng(lg->output_log, offset))) {
+ logger_unlock(lg);
ok = GDK_FAIL;
goto bailout;
}
ok = wt(val, lg->output_log, 1);
+ logger_unlock(lg);
if (lg->debug & 1)
fprintf(stderr, "#Logged %d " LLFMT " inserts\n", id, nr);
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]