|
|
6f51e1 |
From 8a0b4643e1119e994370089fd52721373e88bb51 Mon Sep 17 00:00:00 2001
|
|
|
6f51e1 |
From: William Brown <firstyear@redhat.com>
|
|
|
6f51e1 |
Date: Wed, 29 Mar 2017 10:59:14 +1000
|
|
|
6f51e1 |
Subject: [PATCH] Ticket 49196 - Autotune generates crit messages
|
|
|
6f51e1 |
|
|
|
6f51e1 |
Bug Description: The cache sanity check generates critical messages.
|
|
|
6f51e1 |
|
|
|
6f51e1 |
Fix Description: Make the sanity check generate warning messages.
|
|
|
6f51e1 |
|
|
|
6f51e1 |
https://pagure.io/389-ds-base/issue/49196
|
|
|
6f51e1 |
|
|
|
6f51e1 |
Author: wibrown
|
|
|
6f51e1 |
|
|
|
6f51e1 |
Review by: mreynolds (Thanks!)
|
|
|
6f51e1 |
---
|
|
|
6f51e1 |
ldap/servers/slapd/back-ldbm/start.c | 8 ++++----
|
|
|
6f51e1 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
6f51e1 |
|
|
|
6f51e1 |
diff --git a/ldap/servers/slapd/back-ldbm/start.c b/ldap/servers/slapd/back-ldbm/start.c
|
|
|
6f51e1 |
index 759af8a..1ae9858 100644
|
|
|
6f51e1 |
--- a/ldap/servers/slapd/back-ldbm/start.c
|
|
|
6f51e1 |
+++ b/ldap/servers/slapd/back-ldbm/start.c
|
|
|
6f51e1 |
@@ -265,12 +265,12 @@ ldbm_back_start_autotune(struct ldbminfo *li) {
|
|
|
6f51e1 |
issane = util_is_cachesize_sane(&total_cache_size);
|
|
|
6f51e1 |
if (!issane) {
|
|
|
6f51e1 |
/* Right, it's time to panic */
|
|
|
6f51e1 |
- slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "It is highly likely your memory configuration of all backends will EXCEED your systems memory.\n");
|
|
|
6f51e1 |
- slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "In a future release this WILL prevent server start up. You MUST alter your configuration.\n");
|
|
|
6f51e1 |
- slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "Total entry cache size: %lu B; dbcache size: %lu B; available memory size: %lu B; \n",
|
|
|
6f51e1 |
+ slapi_log_err(SLAPI_LOG_WARNING, "ldbm_back_start", "It is highly likely your memory configuration of all backends will EXCEED your systems memory.\n");
|
|
|
6f51e1 |
+ slapi_log_err(SLAPI_LOG_WARNING, "ldbm_back_start", "In a future release this WILL prevent server start up. You MUST alter your configuration.\n");
|
|
|
6f51e1 |
+ slapi_log_err(SLAPI_LOG_WARNING, "ldbm_back_start", "Total entry cache size: %lu B; dbcache size: %lu B; available memory size: %lu B; \n",
|
|
|
6f51e1 |
(PRUint64)total_cache_size, (PRUint64)li->li_dbcachesize, availpages * pagesize
|
|
|
6f51e1 |
);
|
|
|
6f51e1 |
- slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "%s\n", msg);
|
|
|
6f51e1 |
+ slapi_log_err(SLAPI_LOG_WARNING, "ldbm_back_start", "%s\n", msg);
|
|
|
6f51e1 |
/* WB 2016 - This should be UNCOMMENTED in a future release */
|
|
|
6f51e1 |
/* return SLAPI_FAIL_GENERAL; */
|
|
|
6f51e1 |
}
|
|
|
6f51e1 |
--
|
|
|
6f51e1 |
2.9.3
|
|
|
6f51e1 |
|