Changeset: ceda8601644e for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ceda8601644e Modified Files: sql/storage/store.c Branch: nospare Log Message:
use modern initialisation (needed for ATOMIC_VAR_INIT) diffs (22 lines): diff --git a/sql/storage/store.c b/sql/storage/store.c --- a/sql/storage/store.c +++ b/sql/storage/store.c @@ -1768,11 +1768,13 @@ store_init(sql_allocator *pa, int debug, if (!store) return NULL; - store->initialized = 0; - store->readonly = readonly; - store->singleuser = singleuser; - store->debug = debug; - store->transaction = ATOMIC_VAR_INIT(TRANSACTION_ID_BASE); + *store = (sqlstore) { + .readonly = readonly, + .singleuser = singleuser, + .debug = debug, + .transaction = ATOMIC_VAR_INIT(TRANSACTION_ID_BASE), + }; + (void)store_timestamp(store); /* increment once */ MT_lock_init(&store->lock, "sqlstore_lock"); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list