[Rpm-maint] [rpm-software-management/rpm] ndb: do not mmap the index database read-write all the time (#1176)
Michael Schroeder
notifications at github.com
Tue Apr 14 09:35:09 UTC 2020
Use read-only mapping for the index databases if the user only requested read-only database access. Also map the xdb database header read-only and only switch to a read-write mapping if an operation is done that needs write access.
You can view, comment on, or merge this pull request online at:
https://github.com/rpm-software-management/rpm/pull/1176
-- Commit Summary --
* ndb: also copy the mapped pointer when keeping a slot
* ndb: do not map the index databases read-write all the time
* ndb: do not map xdb's header read-write all the time
* ndb: unmap xdb's header when closing the xdb database
* Add an index sync call at the end of a database rebuild
* ndb: make rpmxdbWriteHeader a void function
-- File Changes --
M lib/backend/ndb/glue.c (11)
M lib/backend/ndb/rpmidx.c (8)
M lib/backend/ndb/rpmidx.h (2)
M lib/backend/ndb/rpmxdb.c (67)
M lib/rpmdb.c (1)
-- Patch Links --
https://github.com/rpm-software-management/rpm/pull/1176.patch
https://github.com/rpm-software-management/rpm/pull/1176.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1176
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200414/b8cb33ca/attachment.html>
More information about the Rpm-maint
mailing list