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

Allocation checks


diffs (15 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -1816,6 +1816,11 @@ store_load(sqlstore *store, sql_allocato
        store->depchanges = hash_new(NULL, 32, (fkeyvalue)&dep_hash);
        store->sequences = hash_new(NULL, 32, (fkeyvalue)&seq_hash);
        store->seqchanges = list_create(NULL);
+       if (!store->active || !store->dependencies || !store->depchanges || 
!store->sequences || !store->seqchanges) {
+               TRC_CRITICAL(SQL_STORE, "Allocation failure while initializing 
store\n");
+               sql_trans_destroy(tr);
+               return NULL;
+       }
 
        s = bootstrap_create_schema(tr, "sys", 2000, ROLE_SYSADMIN, 
USER_MONETDB);
        if (!store->first)
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to