|
|
fc2009 |
From 60c0e7dfb30fbd8100d45e79d11141956f51656f Mon Sep 17 00:00:00 2001
|
|
|
fc2009 |
From: Simon Pichugin <spichugi@redhat.com>
|
|
|
fc2009 |
Date: Fri, 14 Dec 2018 17:34:34 +0100
|
|
|
fc2009 |
Subject: [PATCH] Issue 49618 - Increase cachememsize and dncachememsize
|
|
|
fc2009 |
variable sizes
|
|
|
fc2009 |
|
|
|
fc2009 |
Description: nssapld-cachememsize is reverted to a smaller value
|
|
|
fc2009 |
if the cap is reached. Increase it to UINT64.
|
|
|
fc2009 |
|
|
|
fc2009 |
https://pagure.io/389-ds-base/issue/49618
|
|
|
fc2009 |
|
|
|
fc2009 |
Reviewed by: tbordaz, mreynolds (Thanks!)
|
|
|
fc2009 |
---
|
|
|
fc2009 |
ldap/servers/slapd/back-ldbm/ldbm_config.c | 2 +-
|
|
|
fc2009 |
ldap/servers/slapd/back-ldbm/ldbm_instance_config.c | 4 ++--
|
|
|
fc2009 |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
fc2009 |
|
|
|
fc2009 |
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_config.c b/ldap/servers/slapd/back-ldbm/ldbm_config.c
|
|
|
fc2009 |
index 4e1a94341..144c5efc5 100644
|
|
|
fc2009 |
--- a/ldap/servers/slapd/back-ldbm/ldbm_config.c
|
|
|
fc2009 |
+++ b/ldap/servers/slapd/back-ldbm/ldbm_config.c
|
|
|
fc2009 |
@@ -2118,7 +2118,7 @@ ldbm_config_get(void *arg, config_info *config, char *buf)
|
|
|
fc2009 |
break;
|
|
|
fc2009 |
case CONFIG_TYPE_SIZE_T:
|
|
|
fc2009 |
val = (size_t)config->config_get_fn(arg);
|
|
|
fc2009 |
- sprintf(buf, "%lu", (long unsigned int)val);
|
|
|
fc2009 |
+ sprintf(buf, "%" PRIu32, (uint32_t)val);
|
|
|
fc2009 |
break;
|
|
|
fc2009 |
case CONFIG_TYPE_UINT64:
|
|
|
fc2009 |
val = (uint64_t)((uintptr_t)config->config_get_fn(arg));
|
|
|
fc2009 |
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c b/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
|
|
|
fc2009 |
index 643628c85..5eac1c1df 100644
|
|
|
fc2009 |
--- a/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
|
|
|
fc2009 |
+++ b/ldap/servers/slapd/back-ldbm/ldbm_instance_config.c
|
|
|
fc2009 |
@@ -366,11 +366,11 @@ ldbm_instance_config_require_index_set(void *arg,
|
|
|
fc2009 |
*----------------------------------------------------------------------*/
|
|
|
fc2009 |
static config_info ldbm_instance_config[] = {
|
|
|
fc2009 |
{CONFIG_INSTANCE_CACHESIZE, CONFIG_TYPE_LONG, "-1", &ldbm_instance_config_cachesize_get, &ldbm_instance_config_cachesize_set, CONFIG_FLAG_ALWAYS_SHOW | CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
|
|
|
fc2009 |
- {CONFIG_INSTANCE_CACHEMEMSIZE, CONFIG_TYPE_SIZE_T, DEFAULT_CACHE_SIZE_STR, &ldbm_instance_config_cachememsize_get, &ldbm_instance_config_cachememsize_set, CONFIG_FLAG_ALWAYS_SHOW | CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
|
|
|
fc2009 |
+ {CONFIG_INSTANCE_CACHEMEMSIZE, CONFIG_TYPE_UINT64, DEFAULT_CACHE_SIZE_STR, &ldbm_instance_config_cachememsize_get, &ldbm_instance_config_cachememsize_set, CONFIG_FLAG_ALWAYS_SHOW | CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
|
|
|
fc2009 |
{CONFIG_INSTANCE_READONLY, CONFIG_TYPE_ONOFF, "off", &ldbm_instance_config_readonly_get, &ldbm_instance_config_readonly_set, CONFIG_FLAG_ALWAYS_SHOW | CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
|
|
|
fc2009 |
{CONFIG_INSTANCE_REQUIRE_INDEX, CONFIG_TYPE_ONOFF, "off", &ldbm_instance_config_require_index_get, &ldbm_instance_config_require_index_set, CONFIG_FLAG_ALWAYS_SHOW | CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
|
|
|
fc2009 |
{CONFIG_INSTANCE_DIR, CONFIG_TYPE_STRING, NULL, &ldbm_instance_config_instance_dir_get, &ldbm_instance_config_instance_dir_set, CONFIG_FLAG_ALWAYS_SHOW},
|
|
|
fc2009 |
- {CONFIG_INSTANCE_DNCACHEMEMSIZE, CONFIG_TYPE_SIZE_T, DEFAULT_DNCACHE_SIZE_STR, &ldbm_instance_config_dncachememsize_get, &ldbm_instance_config_dncachememsize_set, CONFIG_FLAG_ALWAYS_SHOW | CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
|
|
|
fc2009 |
+ {CONFIG_INSTANCE_DNCACHEMEMSIZE, CONFIG_TYPE_UINT64, DEFAULT_DNCACHE_SIZE_STR, &ldbm_instance_config_dncachememsize_get, &ldbm_instance_config_dncachememsize_set, CONFIG_FLAG_ALWAYS_SHOW | CONFIG_FLAG_ALLOW_RUNNING_CHANGE},
|
|
|
fc2009 |
{NULL, 0, NULL, NULL, NULL, 0}};
|
|
|
fc2009 |
|
|
|
fc2009 |
void
|
|
|
fc2009 |
--
|
|
|
fc2009 |
2.17.2
|
|
|
fc2009 |
|