diff --git a/Modules/_bsddb.c b/Modules/_bsddb.c index 6a726a589c0..d749cfc04af 100644 --- a/Modules/_bsddb.c +++ b/Modules/_bsddb.c @@ -2570,7 +2570,7 @@ _DB_make_list(DBObject* self, DB_TXN* txn, int type) /* get a cursor */ MYDB_BEGIN_ALLOW_THREADS; - err = self->db->cursor(self->db, NULL, &cursor, 0); + err = self->db->cursor(self->db, txn, &cursor, 0); MYDB_END_ALLOW_THREADS; RETURN_IF_ERR();