From b7671e2bf63cd43e0760224084ee69ee31777676 Mon Sep 17 00:00:00 2001 From: dimitr Date: Wed, 19 Jul 2006 15:16:14 +0000 Subject: [PATCH] Increase minimal created page size to 4096. Note that we still can open less page sizes. --- src/jrd/jrd.cpp | 4 ++-- src/jrd/ods.h | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jrd/jrd.cpp b/src/jrd/jrd.cpp index 0ec646e2e0..8c263e2a95 100644 --- a/src/jrd/jrd.cpp +++ b/src/jrd/jrd.cpp @@ -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; diff --git a/src/jrd/ods.h b/src/jrd/ods.h index 24f3873213..81acb4cab7 100644 --- a/src/jrd/ods.h +++ b/src/jrd/ods.h @@ -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 {