projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
695380d
)
Pass dbiClose() flags down to db->close()
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 31 May 2011 06:02:29 +0000
(09:02 +0300)
committer
Panu 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
patch
|
blob
|
history
diff --git
a/lib/backend/db3.c
b/lib/backend/db3.c
index
11ab50d
..
e06aa96
100644
(file)
--- a/
lib/backend/db3.c
+++ b/
lib/backend/db3.c
@@
-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);