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:
parent
1053e111bb
commit
a6345fe4c9
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user