Changeset: fdf485d9a7ef for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=fdf485d9a7ef
Modified Files:
sql/storage/store.c
Branch: nospare
Log Message:
don't touch possibly destroyed objects
diffs (32 lines):
diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -151,8 +151,10 @@ key_destroy(sqlstore *store, sql_key *k)
return;
list_destroy2(k->columns, store);
k->columns = NULL;
+ /*
if ((k->type == pkey) && (k->t->pkey == (sql_ukey *) k))
k->t->pkey = NULL;
+ */
_DELETE(k->base.name);
_DELETE(k);
}
@@ -166,7 +168,7 @@ idx_destroy(sqlstore *store, sql_idx * i
list_destroy2(i->columns, store);
i->columns = NULL;
- if (isTable(i->t))
+ if (i->data)
store->storage_api.destroy_idx(store, i);
_DELETE(i->base.name);
_DELETE(i);
@@ -197,7 +199,7 @@ column_destroy(sqlstore *store, sql_colu
assert(c->base.refcnt > 0);
if (--(c->base.refcnt) > 0)
return;
- if (isTable(c->t))
+ if (c->data)
store->storage_api.destroy_col(store, c);
_DELETE(c->def);
_DELETE(c->base.name);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list