Fix mistake in db-5.3.28-mmap-high-cpu-usage.patch

Resolves: #2004825
This commit is contained in:
Filip Januš 2021-09-16 13:24:41 +02:00
parent 91f5ca6fc8
commit 5710d10d37
2 changed files with 7 additions and 4 deletions

View File

@ -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,

View File

@ -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š <fjanus@redhat.com> - 5.3.28-49
* Thu Sep 16 2021 Filip Januš <fjanus@redhat.com> - 5.3.29-50
- Fix mistake in patch 41
* Wed Sep 15 2021 Filip Januš <fjanus@redhat.com> - 5.3.28-49
- Improve previous (patch 41) to cover more cases
* Mon Sep 14 2021 Filip Januš <fjanus@redhat.com> - 5.3.28-48
* Mon Sep 13 2021 Filip Januš <fjanus@redhat.com> - 5.3.28-48
- Bad order of sys calls cause high CPU usage
- Related: #1992402
- Patch no. 41 was added