[Rpm-maint] [rpm-software-management/rpm] Increase lmdb DB size from 256M to 1G (#902)

ifel notifications at github.com
Wed Oct 16 20:24:15 UTC 2019


The mapsize in LMDB is a limit of the DB size. It's set to 256M now, and if the DB reaches this size, rpm operations fails with:
---
error: lmdb:    rc(-30792) = mdb_cursor_put(): MDB_MAP_FULL: Environment mapsize limit reached
error: rc(-30792) adding header #31959 record: MDB_MAP_FULL: Environment mapsize limit reached
---

In my case, it was next to it, and it was failing on updating an RPM with 34.5K of files (as during update it should store data for the old and new files both).

Increase the size of the DB to 1GB, it should cover most of use cases now, but we should probably come up with a better solution in the future, if we decide to use this DB.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/902

-- Commit Summary --

  * Increase lmdb DB size from 256M to 1G

-- File Changes --

    M lib/backend/lmdb.c (2)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/902.patch
https://github.com/rpm-software-management/rpm/pull/902.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/902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20191016/b839accb/attachment.html>


More information about the Rpm-maint mailing list