Changeset: c648e5c63246 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c648e5c63246
Modified Files:
        sql/storage/objectset.c
Branch: default
Log Message:

Should never happen, i.e. change to assert.


diffs (16 lines):

diff --git a/sql/storage/objectset.c b/sql/storage/objectset.c
--- a/sql/storage/objectset.c
+++ b/sql/storage/objectset.c
@@ -726,9 +726,9 @@ os_add_name_based(objectset *os, struct 
                        }
                        // END ATOMIC CAS
                }
-               if (state == active && oo->ts == ov->ts && !(ov->state & 
deleted)) {
-                       return -1; /* new object with same name within 
transaction, should have a delete in between */
-               }
+
+               /* new object with same name within transaction, should have a 
delete in between */
+               assert(!(state == active && oo->ts == ov->ts && !(ov->state & 
deleted)));
 
                MT_lock_set(&os->ht_lock);
                ov->name_based_head = oo->name_based_head;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to