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

Prevent crash.
Apparently it's possible to have a declared index (e.g. an ordered
one) without bat.


diffs (12 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
@@ -1596,7 +1596,7 @@ upgrade_idx(sql_idx *i)
 {
        sql_delta *bat = i->data;
 
-       if (!i->t->bootstrap)
+       if (!i->t->bootstrap && bat != NULL)
                return upgrade_delta(bat, LOG_IDX, i->base.id);
        return LOG_OK;
 }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to