projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
650c9e5
)
Create indexes too on rpmdbInit() (ticket #156)
author
Panu Matilainen
<pmatilai@redhat.com>
Mon, 18 Oct 2010 11:35:57 +0000
(14:35 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Mon, 18 Oct 2010 11:35:57 +0000
(14:35 +0300)
- Seems strange to have an initializer function which doesn't
initialize
- This leaves RPMDB_FLAG_JUSTCHECK unused...
lib/rpmdb.c
patch
|
blob
|
history
diff --git
a/lib/rpmdb.c
b/lib/rpmdb.c
index
5e571cc
..
d8f9780
100644
(file)
--- a/
lib/rpmdb.c
+++ b/
lib/rpmdb.c
@@
-763,8
+763,7
@@
int rpmdbInit (const char * prefix, int perms)
int _dbapi = rpmExpandNumeric("%{_dbapi}");
int rc;
- rc = openDatabase(prefix, NULL, _dbapi, &db, (O_CREAT | O_RDWR),
- perms, RPMDB_FLAG_JUSTCHECK);
+ rc = openDatabase(prefix, NULL, _dbapi, &db, (O_CREAT | O_RDWR), perms, 0);
if (db != NULL) {
int xx;
xx = rpmdbOpenAll(db);