Changeset: 64c616a622d9 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/64c616a622d9 Modified Files: gdk/gdk_logger.c Branch: Aug2024 Log Message:
Don't trust BAT properties when updating a BAT from the WAL. Fixed #7575. 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 @@ -767,6 +767,18 @@ la_bat_updates(logger *lg, logaction *la const void *t = BUNtail(vi, p); if (q < cnt) { + if (b->tnosorted == q) + b->tnosorted = 0; + if (b->tnorevsorted == q) + b->tnorevsorted = 0; + if (b->tnokey[0] == q || + b->tnokey[1] == q) { + b->tnokey[0] = 0; + b->tnokey[1] = 0; + } + b->tkey = false; + b->tsorted = false; + b->tkey = false; if (BUNreplace(b, q, t, true) != GDK_SUCCEED) { logbat_destroy(b); bat_iterator_end(&vi); _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org