zrhoffman / rpms / 389-ds-base

Forked from rpms/389-ds-base 3 years ago
Clone

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

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