74ca47
From 8a0b4643e1119e994370089fd52721373e88bb51 Mon Sep 17 00:00:00 2001
74ca47
From: William Brown <firstyear@redhat.com>
74ca47
Date: Wed, 29 Mar 2017 10:59:14 +1000
74ca47
Subject: [PATCH] Ticket 49196 - Autotune generates crit messages
74ca47
74ca47
Bug Description:  The cache sanity check generates critical messages.
74ca47
74ca47
Fix Description:  Make the sanity check generate warning messages.
74ca47
74ca47
https://pagure.io/389-ds-base/issue/49196
74ca47
74ca47
Author: wibrown
74ca47
74ca47
Review by: mreynolds (Thanks!)
74ca47
---
74ca47
 ldap/servers/slapd/back-ldbm/start.c | 8 ++++----
74ca47
 1 file changed, 4 insertions(+), 4 deletions(-)
74ca47
74ca47
diff --git a/ldap/servers/slapd/back-ldbm/start.c b/ldap/servers/slapd/back-ldbm/start.c
74ca47
index 759af8a..1ae9858 100644
74ca47
--- a/ldap/servers/slapd/back-ldbm/start.c
74ca47
+++ b/ldap/servers/slapd/back-ldbm/start.c
74ca47
@@ -265,12 +265,12 @@ ldbm_back_start_autotune(struct ldbminfo *li) {
74ca47
     issane = util_is_cachesize_sane(&total_cache_size);
74ca47
     if (!issane) {
74ca47
         /* Right, it's time to panic */
74ca47
-        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");
74ca47
-        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");
74ca47
-        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",
74ca47
+        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");
74ca47
+        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");
74ca47
+        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",
74ca47
                   (PRUint64)total_cache_size, (PRUint64)li->li_dbcachesize, availpages * pagesize
74ca47
         );
74ca47
-        slapi_log_err(SLAPI_LOG_CRIT, "ldbm_back_start", "%s\n", msg);
74ca47
+        slapi_log_err(SLAPI_LOG_WARNING, "ldbm_back_start", "%s\n", msg);
74ca47
         /* WB 2016 - This should be UNCOMMENTED in a future release */
74ca47
         /* return SLAPI_FAIL_GENERAL; */
74ca47
     }
74ca47
-- 
74ca47
2.9.3
74ca47