mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 18:03:04 +01:00
Fix CORE-1470.
This commit is contained in:
parent
a5786b3459
commit
0519215923
@ -1590,9 +1590,7 @@ void PAG_init2(USHORT shadow_number)
|
|||||||
if ((shadow_number) && (!file->fil_min_page))
|
if ((shadow_number) && (!file->fil_min_page))
|
||||||
CCH_RELEASE(tdbb, &window);
|
CCH_RELEASE(tdbb, &window);
|
||||||
|
|
||||||
for (const TEXT* p = reinterpret_cast<TEXT*>(header->hdr_data);
|
for (const UCHAR* p = header->hdr_data; *p != HDR_end; p += 2 + p[1])
|
||||||
*p != HDR_end;
|
|
||||||
p += 2 + p[1])
|
|
||||||
{
|
{
|
||||||
switch (*p) {
|
switch (*p) {
|
||||||
case HDR_file:
|
case HDR_file:
|
||||||
@ -1608,8 +1606,7 @@ void PAG_init2(USHORT shadow_number)
|
|||||||
case HDR_sweep_interval:
|
case HDR_sweep_interval:
|
||||||
// CVC: Let's copy it always.
|
// CVC: Let's copy it always.
|
||||||
//if (!(dbb->dbb_flags & DBB_read_only))
|
//if (!(dbb->dbb_flags & DBB_read_only))
|
||||||
MOVE_FAST(p + 2, &dbb->dbb_sweep_interval,
|
MOVE_FAST(p + 2, &dbb->dbb_sweep_interval, sizeof(SLONG));
|
||||||
sizeof(SLONG));
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user