Changeset: 27e60db818a5 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=27e60db818a5
Modified Files:
        sql/storage/bat/bat_storage.c
Branch: default
Log Message:

fixed crash during concurrent updates


diffs (30 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
@@ -1684,7 +1684,7 @@ update_table(sql_trans *tr, sql_table *f
                                p = b;
                                b = b->next;
                        }
-                       if (b && p) {
+                       if (b && b->wtime > oldest->stime && p) {
                                p->next = NULL;
                                destroy_dbat(b);
                        }
@@ -1712,7 +1712,7 @@ update_table(sql_trans *tr, sql_table *f
                                p = b;
                                b = b->next;
                        }
-                       if (b && p) {
+                       if (b && b->wtime > oldest->stime && p) {
                                p->next = NULL;
                                destroy_bat(tr, b);
                        }
@@ -1749,7 +1749,7 @@ update_table(sql_trans *tr, sql_table *f
                                        p = b;
                                        b = b->next;
                                }
-                               if (b && p) {
+                               if (b && b->wtime > oldest->stime && p) {
                                        p->next = NULL;
                                        destroy_bat(tr, b);
                                }
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to