Changeset: 85a72763e8d3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/85a72763e8d3
Modified Files:
        sql/storage/store.c
Branch: Jul2021
Log Message:

Retrieve idx from the right set. It fixes the temp tables crash


diffs (31 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -399,9 +399,9 @@ load_key(sql_trans *tr, sql_table *t, re
        }
 
        /* find idx with same name */
-       sql_base *i = os_find_name(nk->t->s->idxs, tr, nk->base.name);
-       if (i) {
-               nk->idx = (sql_idx*)i;
+       node *n = ol_find_name(t->idxs, nk->base.name);
+       if (n) {
+               nk->idx = (sql_idx*)n->data;
                nk->idx->key = nk;
        }
        return nk;
@@ -2895,10 +2895,10 @@ key_dup(sql_trans *tr, sql_key *k, sql_t
        nk->idx = NULL;
 
        if (k->idx) {
-               sql_base *b = os_find_name(nk->t->s->idxs, tr, nk->base.name);
-
-               if (b) {
-                       nk->idx = (sql_idx *)b;
+               node *n = ol_find_name(t->idxs, nk->base.name);
+
+               if (n) {
+                       nk->idx = (sql_idx *)n->data;
                        nk->idx->key = nk;
                }
        }
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to