summaryrefslogtreecommitdiffstats
path: root/Lib/bsddb
diff options
context:
space:
mode:
authorGregory P. Smith <greg@mad-scientist.com>2007-08-24 05:32:10 (GMT)
committerGregory P. Smith <greg@mad-scientist.com>2007-08-24 05:32:10 (GMT)
commit07aec08a0134318a5ee087e61f5afbb213f77d93 (patch)
treea38212884336cec47a890ac4ffd4f74689fc9278 /Lib/bsddb
parentfc5fafcf78c87ff80b79a9b89cee7b0e2add6186 (diff)
downloadcpython-07aec08a0134318a5ee087e61f5afbb213f77d93.zip
cpython-07aec08a0134318a5ee087e61f5afbb213f77d93.tar.gz
cpython-07aec08a0134318a5ee087e61f5afbb213f77d93.tar.bz2
reapply of r57378 to fix bug 1725856
Diffstat (limited to 'Lib/bsddb')
-rw-r--r--Lib/bsddb/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py
index df50bce..26e41b1 100644
--- a/Lib/bsddb/__init__.py
+++ b/Lib/bsddb/__init__.py
@@ -266,12 +266,16 @@ class _DBWithCursor(_iter_mixin):
def first(self):
self._checkOpen()
+ # fix 1725856: don't needlessly try to restore our cursor position
+ self.saved_dbc_key = None
self._checkCursor()
rv = _DeadlockWrap(self.dbc.first)
return rv
def last(self):
self._checkOpen()
+ # fix 1725856: don't needlessly try to restore our cursor position
+ self.saved_dbc_key = None
self._checkCursor()
rv = _DeadlockWrap(self.dbc.last)
return rv