Blame SOURCES/0017-Issue-49035-dbmon.sh-shows-pages-in-use-that-exceeds.patch

6f51e1
From c14b2d88497724c4e19e5fae89bb40c95a61e1cb Mon Sep 17 00:00:00 2001
6f51e1
From: Mark Reynolds <mreynolds@redhat.com>
6f51e1
Date: Thu, 30 Mar 2017 15:26:00 -0400
6f51e1
Subject: [PATCH] Issue 49035 - dbmon.sh shows pages-in-use that exceeds the
6f51e1
 cache size
6f51e1
6f51e1
Bug Description:  dbmon shows negative free cache stats because the pages-in-use exceeds
6f51e1
                  the expected size of the cache.  This is because on caches smaller
6f51e1
                  than 500mb, libdb automatically increases the size by ~25%.  The tool
6f51e1
                  is only checking the configured db cache size, and in this case its
6f51e1
                  actaully larger than what was conigured in dse.ldif.
6f51e1
6f51e1
Fix Description:  dbmon.sh should use the libdb's "cache size in bytes", instead of
6f51e1
                  nsslapd-dbcachesize - as it could be different.
6f51e1
6f51e1
https://pagure.io/389-ds-base/issue/49035
6f51e1
6f51e1
Reviewed by: nhosoi & wibrown (Thanks!!)
6f51e1
---
6f51e1
 ldap/admin/src/scripts/dbmon.sh.in | 2 +-
6f51e1
 1 file changed, 1 insertion(+), 1 deletion(-)
6f51e1
6f51e1
diff --git a/ldap/admin/src/scripts/dbmon.sh.in b/ldap/admin/src/scripts/dbmon.sh.in
6f51e1
index 4ee6adc..46796e2 100644
6f51e1
--- a/ldap/admin/src/scripts/dbmon.sh.in
6f51e1
+++ b/ldap/admin/src/scripts/dbmon.sh.in
6f51e1
@@ -47,7 +47,7 @@ parseldif() {
6f51e1
         }
6f51e1
         /^[^ ]|^$/ {origline = $0; $0 = unwrapline; unwrapline = origline}
6f51e1
         /^ / {sub(/^ /, ""); unwrapline = unwrapline $0; next}
6f51e1
-        /^nsslapd-dbcachesize/ { dbcachesize=$2 }
6f51e1
+        /^nsslapd-db-cache-size-bytes/ { dbcachesize=$2 }
6f51e1
         /^nsslapd-db-page-size/ { pagesize=$2 }
6f51e1
         /^dbcachehitratio/ { dbhitratio=$2 }
6f51e1
         /^dbcachepagein/ { dbcachepagein=$2 }
6f51e1
-- 
6f51e1
2.9.3
6f51e1