Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LMDB backend for RPMDB to RPM (from @n3npq in #281) #291

Closed

Conversation

Conan-Kudo
Copy link
Member

This PR implements an LMDB-based rpmdb for RPM.

Closes #281
Fixes #128

@Conan-Kudo Conan-Kudo changed the title Add LMDB backend for RPMDB to RPM Add LMDB backend for RPMDB to RPM (from @n3npq in #281) Jul 30, 2017
@robert-scheck
Copy link

Is it intended, that it's called /data.mdb rather /Packages.mdb?

@ignatenkobrain
Copy link
Contributor

@n3npq why don't you send Pull Requests on your own. finding this attachments and converting them to real commits is painful and doesn't lead anywhere...

@Conan-Kudo Conan-Kudo force-pushed the rpm-lmdb branch 2 times, most recently from c8281d0 to 2864bc4 Compare July 30, 2017 20:16
@Conan-Kudo
Copy link
Member Author

@n3npq @hyc @ignatenkobrain This should be fully rebased now.

@mlschroe
Copy link
Contributor

Please remove the part that patches ndb/glue.c from this commit.

@Conan-Kudo
Copy link
Member Author

@mlschroe Fixed.

@Conan-Kudo Conan-Kudo changed the title Add LMDB backend for RPMDB to RPM (from @n3npq in #281) WIP: Add LMDB backend for RPMDB to RPM (from @n3npq in #281) Aug 10, 2017
@Conan-Kudo Conan-Kudo changed the title WIP: Add LMDB backend for RPMDB to RPM (from @n3npq in #281) Add LMDB backend for RPMDB to RPM (from @n3npq in #281) Aug 10, 2017
@Conan-Kudo Conan-Kudo force-pushed the rpm-lmdb branch 4 times, most recently from d5881e6 to 71c4ced Compare August 10, 2017 11:52
Jeff Johnson and others added 2 commits August 10, 2017 07:53
v2 (Neal Gompa)
  * Switch from RPM_CHECK_LIB to PKG_CHECK_MODULES
  * Fix notation of file name in lmdb.c
  * Remove MDB_FIXEDMAP flag to prevent portability issues
  * Rename database file "data.mdb" to "Packages.mdb"
  * Add comment that lmdb is an option for %_db_backend

Closes: rpm-software-management#281
Fixes: rpm-software-management#128
@pmatilai
Copy link
Member

@n3npq : well this is a pleasant surprise. Thank you!

@Conan-Kudo : testing for Packages.mdb existence doesn't make LMDB create it. AFAICS the "data.mdb" name is hardwired in LMDB unless MDB_NOSUBDIR is used, and using that would introduce other unnecessary complications. I can fix that when committing.

Other than that, there seems to be some code duplication from db3.c that could be eliminated with a bit of refactoring and other more or less minor cleanups, but those can be dealt with later on as time permits.

@pmatilai
Copy link
Member

Merged manually as of commit ed9de19

Again, thank you @n3npq for the backend and @Conan-Kudo for the final tweaks!

@pmatilai pmatilai closed this Aug 17, 2017
@Conan-Kudo Conan-Kudo deleted the rpm-lmdb branch August 17, 2017 11:18
@Conan-Kudo
Copy link
Member Author

@pmatilai Thank you for reviewing it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants