8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 21:23:03 +01:00

Fixed bug CORE-2532 : Incorrect size of volumes in multi volume database

This commit is contained in:
hvlad 2009-06-28 21:11:18 +00:00
parent 1f59fa06ef
commit 9ac27abdca
2 changed files with 6 additions and 0 deletions

View File

@ -610,6 +610,9 @@ USHORT PIO_init_data(Database* dbb, jrd_file* main_file, ISC_STATUS* status_vect
USHORT leftPages = initPages;
const ULONG initBy = MIN(file->fil_max_page - startPage, leftPages);
if (initBy < leftPages)
leftPages = initBy;
for (ULONG i = startPage; i < startPage + initBy; )
{
bdb.bdb_page = PageNumber(0, i);

View File

@ -595,6 +595,9 @@ USHORT PIO_init_data(Database* dbb, jrd_file* main_file, ISC_STATUS* status_vect
USHORT leftPages = initPages;
const ULONG initBy = MIN(file->fil_max_page - startPage, leftPages);
if (initBy < leftPages)
leftPages = initBy;
for (ULONG i = startPage; i < startPage + initBy; )
{
bdb.bdb_page = PageNumber(0, i);