mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
fixes SF bug 914019 - DB.has_key was not honoring its txn argument
This commit is contained in:
parent
6e4620bfb1
commit
0c65771f92
1 changed files with 2 additions and 2 deletions
|
@ -97,7 +97,7 @@
|
|||
#error "eek! DBVER can't handle minor versions > 9"
|
||||
#endif
|
||||
|
||||
#define PY_BSDDB_VERSION "4.2.5"
|
||||
#define PY_BSDDB_VERSION "4.2.6"
|
||||
static char *rcs_id = "$Id$";
|
||||
|
||||
|
||||
|
@ -2401,7 +2401,7 @@ DB_has_key(DBObject* self, PyObject* args)
|
|||
data.flags = DB_DBT_USERMEM;
|
||||
|
||||
MYDB_BEGIN_ALLOW_THREADS;
|
||||
err = self->db->get(self->db, NULL, &key, &data, 0);
|
||||
err = self->db->get(self->db, txn, &key, &data, 0);
|
||||
MYDB_END_ALLOW_THREADS;
|
||||
FREE_DBT(key);
|
||||
return PyInt_FromLong((err == ENOMEM) || (err == 0));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue