8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 00:03:02 +01:00
This commit is contained in:
hvlad 2005-02-08 21:23:59 +00:00
parent 747dfa524a
commit 9826986fb8
2 changed files with 6 additions and 0 deletions

View File

@ -1542,6 +1542,8 @@ void BTR_reserve_slot(thread_db* tdbb, jrd_rel* relation, jrd_tra* transaction,
const Database* dbb = tdbb->tdbb_database;
CHECK_DBB(dbb);
fb_assert(relation && relation->rel_index_root);
// Get root page, assign an index id, and store the index descriptor.
// Leave the root pointer null for the time being.
WIN window(relation->rel_index_root);

View File

@ -193,6 +193,10 @@ void IDX_create_index(
isc_arg_string, ERR_cstring(relation->rel_name), 0);
}
if (!relation->rel_index_root) {
get_root_page(tdbb, relation);
}
BTR_reserve_slot(tdbb, relation, transaction, idx);
if (index_id) {