From 5710d10d376bf5180c27be046a6f108345e26ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Janu=C5=A1?= Date: Thu, 16 Sep 2021 13:24:41 +0200 Subject: [PATCH] Fix mistake in db-5.3.28-mmap-high-cpu-usage.patch Resolves: #2004825 --- db-5.3.28-mmap-high-cpu-usage.patch | 2 +- libdb.spec | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/db-5.3.28-mmap-high-cpu-usage.patch b/db-5.3.28-mmap-high-cpu-usage.patch index b379b88..b11ce08 100644 --- a/db-5.3.28-mmap-high-cpu-usage.patch +++ b/db-5.3.28-mmap-high-cpu-usage.patch @@ -11,7 +11,7 @@ diff -ur db-5.3.28/src/os/os_map.c db_patch/src/os/os_map.c if (ret == 0 && F_ISSET(infop, REGION_CREATE)) { - if (F_ISSET(dbenv, DB_ENV_REGION_INIT)) + -+ rp->max = rp->size; ++ rp->size = rp->max; + + if (F_ISSET(dbenv, DB_ENV_REGION_INIT)) ret = __db_file_write(env, infop->fhp, diff --git a/libdb.spec b/libdb.spec index d38e27f..ea3cfe2 100644 --- a/libdb.spec +++ b/libdb.spec @@ -5,7 +5,7 @@ Summary: The Berkeley DB database library for C Name: libdb Version: 5.3.28 -Release: 49%{?dist} +Release: 50%{?dist} Source0: http://download.oracle.com/berkeley-db/db-%{version}.tar.gz Source1: http://download.oracle.com/berkeley-db/db.1.85.tar.gz # For mt19937db.c @@ -389,10 +389,13 @@ mv man/* ${RPM_BUILD_ROOT}%{_mandir}/man1 %{_includedir}/%{name}/dbsql.h %changelog -* Tue Sep 15 2021 Filip Januš - 5.3.28-49 +* Thu Sep 16 2021 Filip Januš - 5.3.29-50 +- Fix mistake in patch 41 + +* Wed Sep 15 2021 Filip Januš - 5.3.28-49 - Improve previous (patch 41) to cover more cases -* Mon Sep 14 2021 Filip Januš - 5.3.28-48 +* Mon Sep 13 2021 Filip Januš - 5.3.28-48 - Bad order of sys calls cause high CPU usage - Related: #1992402 - Patch no. 41 was added