Changeset: 338ff6b35b34 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=338ff6b35b34
Modified Files:
        sql/storage/bat/bat_storage.c
Branch: Apr2019
Log Message:

This assertion no longer always holds:
It can happen for concurrent write-only transactions,
say a truncate and an insert transaction,
that the truncate happens between the start and end of the insert
which is a valid sequence of events but one that violates
the deleted assertion.


diffs (11 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
@@ -2466,7 +2466,6 @@ tr_update_delta( sql_trans *tr, sql_delt
                        cur = newcur;
                } else {
                        assert(cur->theap.storage != STORE_PRIV);
-                       assert((BATcount(cur) + BATcount(ins)) == cbat->cnt);
                        //assert((BATcount(cur) + BATcount(ins)) == (obat->cnt 
+ (BUNlast(ins) - ins->batInserted)));
                        assert(!BATcount(ins) || !isEbat(ins));
                        assert(!isEbat(cur));
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to