]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF bug 1017405: the keys() values() and items() DB methods were
authorGregory P. Smith <greg@mad-scientist.com>
Sat, 4 Sep 2004 01:36:59 +0000 (01:36 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Sat, 4 Sep 2004 01:36:59 +0000 (01:36 +0000)
ignoring their transaction (txn) argument.

Modules/_bsddb.c

index 6a726a589c0383df36b5b73bb21a6d2e12194192..d749cfc04af5fac69b93c5e5b0d37c05f186a006 100644 (file)
@@ -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();