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

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

This commit is contained in:
hvlad 2009-06-28 20:43:07 +00:00
parent 1053e111bb
commit a6345fe4c9
2 changed files with 6 additions and 0 deletions

View File

@ -551,6 +551,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

@ -499,6 +499,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);