mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
Misc
This commit is contained in:
parent
61cb38a0d5
commit
c722690150
@ -199,8 +199,8 @@
|
||||
#
|
||||
# Sets the amount of preallocated disk space in bytes. Disk space
|
||||
# preallocation allow to reduce physical file fragmentation and to make
|
||||
# database work in out of disk space condition. When preallocation enabled
|
||||
# engine allocated 1/16nth of already allocated disk space at a time but
|
||||
# database work in out of disk space condition. When preallocation enabled,
|
||||
# engine allocate 1/16nth of already allocated disk space at a time but
|
||||
# not less than 128KB and no more than DatabaseGrowthIncrement (128MB by
|
||||
# default). To disable preallocation set DatabaseGrowthIncrement to zero.
|
||||
# Shadow database files are not preallocated
|
||||
|
@ -951,8 +951,8 @@ void CCH_fetch_page(
|
||||
THREAD_EXIT();
|
||||
#endif
|
||||
|
||||
// In merge mode, if we are reading past beyond old end of file and page is in .delta file
|
||||
// then we maintain actual page in difference file. Always read it from there.
|
||||
// In merge mode, if we are reading past beyond old end of file and page is in .delta file
|
||||
// then we maintain actual page in difference file. Always read it from there.
|
||||
if (isTempPage || bak_state == nbak_state_normal || !diff_page)
|
||||
{
|
||||
NBAK_TRACE(("Reading page %d, state=%d, diff page=%d from DISK",
|
||||
@ -1096,8 +1096,8 @@ void CCH_forget_page(thread_db* tdbb, WIN * window)
|
||||
*
|
||||
* Functional description
|
||||
* Page was faked but can't be written on disk. Most probably because
|
||||
* of out of disk space. Release page buffer and other resources and
|
||||
* unlink page from variuos queues
|
||||
* of out of disk space. Release page buffer and others resources and
|
||||
* unlink page from various queues
|
||||
*
|
||||
**************************************/
|
||||
SET_TDBB(tdbb);
|
||||
@ -6336,7 +6336,7 @@ static bool write_page(
|
||||
const bool isTempPage = pageSpace->isTemporary();
|
||||
|
||||
if (!isTempPage && (backup_state == nbak_state_stalled ||
|
||||
backup_state == nbak_state_merge) )
|
||||
backup_state == nbak_state_merge) )
|
||||
{
|
||||
if (!dbb->dbb_backup_manager->write_difference(
|
||||
status, bdb->bdb_difference_page, bdb->bdb_buffer))
|
||||
|
@ -2248,7 +2248,7 @@ bool PageSpace::extend(thread_db* tdbb, const ULONG pageNum)
|
||||
* If "MaxDatabaseFileGrowth" less than MIN_EXTEND_BYTES don't extend file(s)
|
||||
*
|
||||
**************************************/
|
||||
const int MIN_EXTEND_BYTES = 128 * 1024;
|
||||
const int MIN_EXTEND_BYTES = 128 * 1024; // 128KB
|
||||
const int MAX_EXTEND_BYTES = Config::getDatabaseGrowthIncrement();
|
||||
|
||||
if (pageNum < maxPageNumber || MAX_EXTEND_BYTES < MIN_EXTEND_BYTES)
|
||||
@ -2279,6 +2279,7 @@ bool PageSpace::extend(thread_db* tdbb, const ULONG pageNum)
|
||||
THREAD_EXIT();
|
||||
|
||||
while (true)
|
||||
{
|
||||
try
|
||||
{
|
||||
PIO_extend(file, extPages, dbb->dbb_page_size);
|
||||
@ -2301,6 +2302,8 @@ bool PageSpace::extend(thread_db* tdbb, const ULONG pageNum)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
THREAD_ENTER();
|
||||
maxPageNumber = 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user