Create indexes too on rpmdbInit() (ticket #156)
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 18 Oct 2010 11:35:57 +0000 (14:35 +0300)
committerPanu 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

index 5e571cc..d8f9780 100644 (file)
@@ -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);