Blame SOURCES/0026-Ticket-49196-Autotune-generates-crit-messages.patch

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