Commit 48c3a976 authored by Barry Warsaw's avatar Barry Warsaw

_setupDBs(): Fix typo which caused a NameError when opening a database

that had existing versions in it already.  Bug discovered by Andreas
Jung.
parent 7a1eb186
...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support ...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning. undo or versioning.
""" """
__version__ = '$Revision: 1.27 $'[-2:][0] __version__ = '$Revision: 1.28 $'[-2:][0]
import struct import struct
import time import time
...@@ -157,7 +157,7 @@ class Full(BerkeleyBase, ConflictResolvingStorage): ...@@ -157,7 +157,7 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
# Convert to a Python long integer. Note that cursor.last() # Convert to a Python long integer. Note that cursor.last()
# returns key/value, and we want the key (which for the _version # returns key/value, and we want the key (which for the _version
# table is is the vid). # table is is the vid).
self.__nextvid = utils.U64(vid[0]) self.__nextvid = utils.U64(record[0])
else: else:
self.__nextvid = 0L self.__nextvid = 0L
# DEBUGGING # DEBUGGING
......
...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support ...@@ -4,7 +4,7 @@ See Minimal.py for an implementation of Berkeley storage that does not support
undo or versioning. undo or versioning.
""" """
__version__ = '$Revision: 1.27 $'[-2:][0] __version__ = '$Revision: 1.28 $'[-2:][0]
import struct import struct
import time import time
...@@ -157,7 +157,7 @@ class Full(BerkeleyBase, ConflictResolvingStorage): ...@@ -157,7 +157,7 @@ class Full(BerkeleyBase, ConflictResolvingStorage):
# Convert to a Python long integer. Note that cursor.last() # Convert to a Python long integer. Note that cursor.last()
# returns key/value, and we want the key (which for the _version # returns key/value, and we want the key (which for the _version
# table is is the vid). # table is is the vid).
self.__nextvid = utils.U64(vid[0]) self.__nextvid = utils.U64(record[0])
else: else:
self.__nextvid = 0L self.__nextvid = 0L
# DEBUGGING # DEBUGGING
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment