[Rpm-maint] [rpm-software-management/rpm] Warn and fall back to dummy database on unknown database backend config (#1345)

Panu Matilainen notifications at github.com
Thu Aug 27 07:56:40 UTC 2020


The rpmdb is our most precious piece of data, don't make assumptions on
invalid configuration. Together with our crazy create-db-on-read behavior,
total database loss is just one 'rpmdb --rebuilddb' away in some scenarios
with the former behavior: access an sqlite/ndb database with older
version not supporting those, silently fallback to creating empty bdb,
and if db is now rebuilt, poof the data is gone.

Detect and warn on unknown/invalid %_db_backend configuration and fall
back to using dummy backend where no damage can occur. Doesn't help with
the old versions out there, but lets at least be saner going forward.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Warn and fall back to dummy database on unknown database backend config

-- File Changes --

    M lib/backend/dbi.c (6)

-- Patch Links --

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


More information about the Rpm-maint mailing list