diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2012-02-02 14:31:17 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2012-02-02 14:39:49 +0200 |
commit | 89eadf7f1465cfb4ec71f1c4dd17b3fec2afc5b3 (patch) | |
tree | 5eac8f7aebeab26071349e5d3574b3f4d237ec5e /lib/rpmdb.c | |
parent | 290fcbbe6b3ca2fb1d5e4a7269a32a94f8a1563a (diff) | |
download | librpm-tizen-89eadf7f1465cfb4ec71f1c4dd17b3fec2afc5b3.tar.gz librpm-tizen-89eadf7f1465cfb4ec71f1c4dd17b3fec2afc5b3.tar.bz2 librpm-tizen-89eadf7f1465cfb4ec71f1c4dd17b3fec2afc5b3.zip |
Use private environment for database rebuilds too, document
- One of the more common reasons for users to do --rebuilddb is
a paniced environment. Throwing DB_RUNRECOVER errors at the user
who is trying to recover by rebuilding the db isn't terribly
productive (RhBug:590710). Use a private environment while
rebuilding for both the original and new database, and dont bother
with CDB which only slows things down when there are no other
players present.
- Verify wants the same flags but for different reasons...
Diffstat (limited to 'lib/rpmdb.c')
-rw-r--r-- | lib/rpmdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c index d3a5e2366..79abde734 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -2838,7 +2838,8 @@ int rpmdbRebuild(const char * prefix, rpmts ts, } removedir = 1; - if (openDatabase(prefix, dbpath, &olddb, O_RDONLY, 0644, 0)) { + if (openDatabase(prefix, dbpath, &olddb, + O_RDONLY, 0644, RPMDB_FLAG_REBUILD)) { rc = 1; goto exit; } |