Changeset: 2e86ea5334e4 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/2e86ea5334e4
Modified Files:
gdk/gdk_logger.c
Branch: Aug2024
Log Message:
Zap properties when applying the WAL.
Also see bug #7575.
Repro:
Create q large enough table so that it gets memory-mapped, making sure
the maxpos property is set (e.g. by using inserts), also make sure the
largest value occurs multiple times.
Then update the row (and only the row) that the maxpos property is
referring to with a smaller value.
Restart the server, making sure the WAL has not been processed.
Select the old largest value.
You should get the remaining rows, but with the bug you get none.
diffs (14 lines):
diff --git a/gdk/gdk_logger.c b/gdk/gdk_logger.c
--- a/gdk/gdk_logger.c
+++ b/gdk/gdk_logger.c
@@ -776,6 +776,10 @@ la_bat_updates(logger *lg, logaction *la
b->tnokey[0] = 0;
b->tnokey[1] = 0;
}
+ if (b->tminpos == q)
+ b->tminpos = BUN_NONE;
+ if (b->tmaxpos == q)
+ b->tmaxpos = BUN_NONE;
b->tkey = false;
b->tsorted = false;
b->tkey = false;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]