Changeset: d596cbfd88ea for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d596cbfd88ea
Modified Files:
sql/storage/bat/bat_storage.c
Branch: Jan2022
Log Message:
Recently committed transaction might still be active.
diffs (14 lines):
diff --git a/sql/storage/bat/bat_storage.c b/sql/storage/bat/bat_storage.c
--- a/sql/storage/bat/bat_storage.c
+++ b/sql/storage/bat/bat_storage.c
@@ -410,8 +410,8 @@ merge_segments(storage *s, sql_trans *tr
node *n = store->active->h;
for (int i = 0; i < store->active->cnt; i++, n
= n->next) {
ulng active = ((sql_trans*)n->data)->ts;
- assert(active != seg->ts && active !=
cur->ts);
-
+ if(active == seg->ts || active ==
cur->ts)
+ continue; /* pretent that a
recently committed transaction has already committed and is no longer active */
if (active == tr->ts)
continue; /* pretent that
committing transaction has already committed and is no longer active */
if (seg->ts < active && cur->ts <
active)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]