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

Modules/_bsddb.c

index ef6e2928e81f2730f23353cacded3a901acf80e6..d4be74578b174926e94f6918cb80d57abe813654 100644 (file)
@@ -2409,7 +2409,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();