ldap/servers/slapd/util.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 333f963669c8fc02e4399e8b7517f3d18e7de47d
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Thu Feb 25 12:49:55 2016 -0800
Ticket 48384 - Fix dblayer_is_cachesize_sane and dblayer_sys_pages for linux
Description: commit 476af053a60003c4c017f320d55860d7ecb29ac9 uses a
macro GIGABYTE for the 32 bit build, but it is not defined. This patch
adds the define.
diff --git a/ldap/servers/slapd/util.c b/ldap/servers/slapd/util.c
index b7ecde1..3dfc657 100644
--- a/ldap/servers/slapd/util.c
+++ b/ldap/servers/slapd/util.c
@@ -1704,6 +1704,7 @@ int util_info_sys_pages(size_t *pagesize, size_t *pages, size_t *procpages, size
#if defined(__LP64__) || defined (_LP64)
#else
{
+#define GIGABYTE (1024*1024*1024)
size_t one_gig_pages = GIGABYTE / *pagesize;
if (*pages > (2 * one_gig_pages) ) {
LDAPDebug(LDAP_DEBUG_TRACE,"More than 2Gbytes physical memory detected. Since this is a 32-bit process, truncating memory size used for auto cache calculations to 2Gbytes\n",