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

Increase minimal created page size to 4096. Note that we still can open less page sizes.

This commit is contained in:
dimitr 2006-07-19 15:16:14 +00:00
parent 79ad5e83f7
commit b7671e2bf6
2 changed files with 3 additions and 2 deletions

View File

@ -1833,8 +1833,8 @@ ISC_STATUS GDS_CREATE_DATABASE(ISC_STATUS* user_status,
options.dpb_page_size = DEFAULT_PAGE_SIZE;
}
USHORT page_size;
for (page_size = MIN_PAGE_SIZE; page_size < MAX_PAGE_SIZE; page_size <<= 1)
USHORT page_size = MIN_NEW_PAGE_SIZE;
for (; page_size < MAX_PAGE_SIZE; page_size <<= 1)
{
if (options.dpb_page_size < page_size << 1)
break;

View File

@ -173,6 +173,7 @@ const SCHAR LOG_PAGE = 2;
const USHORT MIN_PAGE_SIZE = 1024;
const USHORT MAX_PAGE_SIZE = 16384;
const USHORT DEFAULT_PAGE_SIZE = 4096;
const USHORT MIN_NEW_PAGE_SIZE = 4096;
namespace Ods {