Changeset: 98bd7889c3e6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/98bd7889c3e6
Modified Files:
gdk/gdk_tm.c
Branch: Jun2023
Log Message:
Fix race condition between subcommit epilogue and BATassertProps.
diffs (14 lines):
diff --git a/gdk/gdk_tm.c b/gdk/gdk_tm.c
--- a/gdk/gdk_tm.c
+++ b/gdk/gdk_tm.c
@@ -61,6 +61,10 @@ epilogue(int cnt, bat *subcommit, bool l
BAT *b;
if (BBP_status(bid) & BBPPERSISTENT) {
+ /* first turn off BBPNEW, then turn on
+ * BBPEXISTING so that concurrent BATassertProps
+ * doesn't fail */
+ BBP_status_off(bid, BBPNEW);
BBP_status_on(bid, BBPEXISTING);
} else if (BBP_status(bid) & BBPDELETED) {
/* check mmap modes of bats that are now
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]