"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/jrd/Relation.cpp" between
Firebird-3.0.2.32703-0.tar.bz2 and Firebird-3.0.4.33054-0.tar.bz2

About: Firebird is a relational database offering many ANSI SQL standard features.

Relation.cpp  (Firebird-3.0.2.32703-0.tar.bz2):Relation.cpp  (Firebird-3.0.4.33054-0.tar.bz2)
skipping to change at line 97 skipping to change at line 97
newPages->addRef(); newPages->addRef();
newPages->rel_instance_id = inst_id; newPages->rel_instance_id = inst_id;
newPages->rel_pg_space_id = dbb->dbb_page_manager.getTempPageSpac eID(tdbb); newPages->rel_pg_space_id = dbb->dbb_page_manager.getTempPageSpac eID(tdbb);
rel_pages_inst->add(newPages); rel_pages_inst->add(newPages);
// create primary pointer page and index root page // create primary pointer page and index root page
DPM_create_relation_pages(tdbb, this, newPages); DPM_create_relation_pages(tdbb, this, newPages);
#ifdef VIO_DEBUG #ifdef VIO_DEBUG
VIO_trace(DEBUG_WRITES, VIO_trace(DEBUG_WRITES,
"jrd_rel::getPages inst %" ULONGFORMAT", ppp %" SLONGFORM "jrd_rel::getPages rel_id %u, inst %" SQUADFORMAT", ppp %
AT", irp %" SLONGFORMAT", addr 0x%x\n", " SLONGFORMAT", irp %" SLONGFORMAT", addr 0x%x\n",
rel_id,
newPages->rel_instance_id, newPages->rel_instance_id,
newPages->rel_pages ? (*newPages->rel_pages)[0] : 0, newPages->rel_pages ? (*newPages->rel_pages)[0] : 0,
newPages->rel_index_root, newPages->rel_index_root,
newPages); newPages);
#endif #endif
// create indexes // create indexes
MemoryPool* pool = tdbb->getDefaultPool(); MemoryPool* pool = tdbb->getDefaultPool();
const bool poolCreated = !pool; const bool poolCreated = !pool;
skipping to change at line 132 skipping to change at line 133
{ {
Firebird::MetaName idx_name; Firebird::MetaName idx_name;
MET_lookup_index(tdbb, idx_name, this->rel_name, idx->idx _id + 1); MET_lookup_index(tdbb, idx_name, this->rel_name, idx->idx _id + 1);
idx->idx_root = 0; idx->idx_root = 0;
SelectivityList selectivity(*pool); SelectivityList selectivity(*pool);
IDX_create_index(tdbb, this, idx, idx_name.c_str(), NULL, idxTran, selectivity); IDX_create_index(tdbb, this, idx, idx_name.c_str(), NULL, idxTran, selectivity);
#ifdef VIO_DEBUG #ifdef VIO_DEBUG
VIO_trace(DEBUG_WRITES, VIO_trace(DEBUG_WRITES,
"jrd_rel::getPages inst %" SQUADFORMAT", irp %" S "jrd_rel::getPages rel_id %u, inst %" SQUADFORMAT
LONGFORMAT", idx %u, idx_root %" SLONGFORMAT", addr 0x%x\n", ", irp %" SLONGFORMAT", idx %u, idx_root %" SLONGFORMAT", addr 0x%x\n",
rel_id,
newPages->rel_instance_id, newPages->rel_instance_id,
newPages->rel_index_root, newPages->rel_index_root,
idx->idx_id, idx->idx_id,
idx->idx_root, idx->idx_root,
newPages); newPages);
#endif #endif
} }
if (poolCreated) if (poolCreated)
dbb->deletePool(pool); dbb->deletePool(pool);
skipping to change at line 170 skipping to change at line 172
fb_assert(tran == 0 || tran == MAX_TRA_NUMBER || fb_assert(tran == 0 || tran == MAX_TRA_NUMBER ||
(tran > 0 && pages->rel_instance_id == tran)); (tran > 0 && pages->rel_instance_id == tran));
fb_assert(pages->useCount > 0); fb_assert(pages->useCount > 0);
if (--pages->useCount) if (--pages->useCount)
return false; return false;
#ifdef VIO_DEBUG #ifdef VIO_DEBUG
VIO_trace(DEBUG_WRITES, VIO_trace(DEBUG_WRITES,
"jrd_rel::delPages inst %" ULONGFORMAT", ppp %" SLONGFORMAT", irp "jrd_rel::delPages rel_id %u, inst %" SQUADFORMAT", ppp %" SLONGF
%" SLONGFORMAT", addr 0x%x\n", ORMAT", irp %" SLONGFORMAT", addr 0x%x\n",
rel_id,
pages->rel_instance_id, pages->rel_instance_id,
pages->rel_pages ? (*pages->rel_pages)[0] : 0, pages->rel_pages ? (*pages->rel_pages)[0] : 0,
pages->rel_index_root, pages->rel_index_root,
pages); pages);
#endif #endif
FB_SIZE_T pos; FB_SIZE_T pos;
#ifdef DEV_BUILD #ifdef DEV_BUILD
const bool found = const bool found =
#endif #endif
 End of changes. 3 change blocks. 
6 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)