Made the default page size a compile flag

This commit is contained in:
Erik Zandvliet 2016-03-10 14:22:30 +01:00 committed by Thulinma
parent f26ec4c6d8
commit 12e04b45af
3 changed files with 12 additions and 4 deletions

View file

@ -57,11 +57,16 @@ static const char * DBG_LVL_LIST[] = {"NONE", "FAIL", "ERROR", "WARN", "INFO", "
#endif
#ifndef SHM_DATASIZE
#define SHM_DATASIZE 25
#endif
/// The size used for stream header pages under Windows, where they cannot be size-detected.
#define DEFAULT_META_PAGE_SIZE 16 * 1024 * 1024
/// The size used for stream data pages under Windows, where they cannot be size-detected.
#define DEFAULT_DATA_PAGE_SIZE 25 * 1024 * 1024
#define DEFAULT_DATA_PAGE_SIZE SHM_DATASIZE * 1024 * 1024
/// The size used for server configuration pages.
#define DEFAULT_CONF_PAGE_SIZE 4 * 1024 * 1024