mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 01:23:03 +01:00
Fixed bug CORE-2532 : Incorrect size of volumes in multi volume database
This commit is contained in:
parent
1f59fa06ef
commit
9ac27abdca
@ -610,6 +610,9 @@ USHORT PIO_init_data(Database* dbb, jrd_file* main_file, ISC_STATUS* status_vect
|
|||||||
|
|
||||||
USHORT leftPages = initPages;
|
USHORT leftPages = initPages;
|
||||||
const ULONG initBy = MIN(file->fil_max_page - startPage, leftPages);
|
const ULONG initBy = MIN(file->fil_max_page - startPage, leftPages);
|
||||||
|
if (initBy < leftPages)
|
||||||
|
leftPages = initBy;
|
||||||
|
|
||||||
for (ULONG i = startPage; i < startPage + initBy; )
|
for (ULONG i = startPage; i < startPage + initBy; )
|
||||||
{
|
{
|
||||||
bdb.bdb_page = PageNumber(0, i);
|
bdb.bdb_page = PageNumber(0, i);
|
||||||
|
@ -595,6 +595,9 @@ USHORT PIO_init_data(Database* dbb, jrd_file* main_file, ISC_STATUS* status_vect
|
|||||||
|
|
||||||
USHORT leftPages = initPages;
|
USHORT leftPages = initPages;
|
||||||
const ULONG initBy = MIN(file->fil_max_page - startPage, leftPages);
|
const ULONG initBy = MIN(file->fil_max_page - startPage, leftPages);
|
||||||
|
if (initBy < leftPages)
|
||||||
|
leftPages = initBy;
|
||||||
|
|
||||||
for (ULONG i = startPage; i < startPage + initBy; )
|
for (ULONG i = startPage; i < startPage + initBy; )
|
||||||
{
|
{
|
||||||
bdb.bdb_page = PageNumber(0, i);
|
bdb.bdb_page = PageNumber(0, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user