mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 19:23:03 +01:00
Fixed bug CORE-2771 : AV at backup of database with GTT
This commit is contained in:
parent
6c2feaf32e
commit
6c63e6502c
@ -194,6 +194,11 @@ RelationPages* jrd_rel::getPagesInternal(thread_db* tdbb, SLONG tran, bool alloc
|
||||
pool = dbb->createPool();
|
||||
Jrd::ContextPoolHolder context(tdbb, pool);
|
||||
|
||||
jrd_tra *idx_tran = tdbb->getTransaction();
|
||||
if (!idx_tran) {
|
||||
idx_tran = dbb->dbb_sys_trans;
|
||||
}
|
||||
|
||||
IndexDescAlloc* indices = NULL;
|
||||
// read indices from "base" index root page
|
||||
const USHORT idx_count = BTR_all(tdbb, this, &indices, &rel_pages_base);
|
||||
@ -206,8 +211,7 @@ RelationPages* jrd_rel::getPagesInternal(thread_db* tdbb, SLONG tran, bool alloc
|
||||
|
||||
idx->idx_root = 0;
|
||||
SelectivityList selectivity(*pool);
|
||||
IDX_create_index(tdbb, this, idx, idx_name.c_str(), NULL,
|
||||
tdbb->getTransaction(), selectivity);
|
||||
IDX_create_index(tdbb, this, idx, idx_name.c_str(), NULL, idx_tran, selectivity);
|
||||
|
||||
#ifdef VIO_DEBUG
|
||||
if (debug_flag > DEBUG_WRITES)
|
||||
|
Loading…
Reference in New Issue
Block a user