Pass dbiClose() flags down to db->close()
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 31 May 2011 06:02:29 +0000 (09:02 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 31 May 2011 06:03:26 +0000 (09:03 +0300)
- BDB of old might not have taken flags there but current ones
  do accept DB_NOSYNC to be specified (not that we use it but...)
- As a side-effect this eliminates another dead assignment

lib/backend/db3.c

index 11ab50d..e06aa96 100644 (file)
@@ -422,10 +422,8 @@ int dbiClose(dbiIndex dbi, unsigned int flags)
     int _printit;
     int rc = 0;
 
-    flags = 0; /* XXX unused */
-
     if (db) {
-       rc = db->close(db, 0);
+       rc = db->close(db, flags);
        /* XXX ignore not found error messages. */
        _printit = (rc == ENOENT ? 0 : _debug);
        rc = cvtdberr(dbi, "db->close", rc, _printit);