summaryrefslogtreecommitdiff
path: root/lib/backend
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-22 10:21:47 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-22 10:21:47 +0300
commita90f65f38b17b7ba993d9d4b7d1677ce0fd4417a (patch)
tree0fab404d37cf6ce3330fca77bcdff8f44994fe87 /lib/backend
parentdff73774ca68b1ab79534547fc744c510da8f0e5 (diff)
downloadlibrpm-tizen-a90f65f38b17b7ba993d9d4b7d1677ce0fd4417a.tar.gz
librpm-tizen-a90f65f38b17b7ba993d9d4b7d1677ce0fd4417a.tar.bz2
librpm-tizen-a90f65f38b17b7ba993d9d4b7d1677ce0fd4417a.zip
DB_INCOMPLETE was removed in BDB 4.1 and we dont support older versions
Diffstat (limited to 'lib/backend')
-rw-r--r--lib/backend/db3.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/backend/db3.c b/lib/backend/db3.c
index 45de8c93f..bc3b8a49d 100644
--- a/lib/backend/db3.c
+++ b/lib/backend/db3.c
@@ -208,13 +208,11 @@ static int db3sync(dbiIndex dbi, unsigned int flags)
{
DB * db = dbi->dbi_db;
int rc = 0;
- int _printit;
- if (db != NULL)
+ if (db != NULL) {
rc = db->sync(db, flags);
- /* XXX DB_INCOMPLETE is returned occaisionally with multiple access. */
- _printit = _debug;
- rc = cvtdberr(dbi, "db->sync", rc, _printit);
+ rc = cvtdberr(dbi, "db->sync", rc, _debug);
+ }
return rc;
}