[ZODB-Dev] OverflowError on get_transaction().commit(1)

Jeremy Hylton jeremy@zope.com (Jeremy Hylton)
Mon, 30 Dec 2002 14:56:29 -0500


This was a big transaction, eh?  I assume the current transaction
involved more than 2GB of data.  Do you have the patience to try this
patch?

Jeremy

Index: TmpStore.py
===================================================================
RCS file: /cvs-repository/ZODB3/ZODB/TmpStore.py,v
retrieving revision 1.8
diff -c -c -r1.8 TmpStore.py
*** TmpStore.py	3 Dec 2002 21:26:38 -0000	1.8
--- TmpStore.py	30 Dec 2002 19:56:07 -0000
***************
*** 29,35 ****
          self._file = tempfile.TemporaryFile()
          # _pos: current file position
          # _tpos: file position at last commit point
!         self._pos = self._tpos = 0
          # _index: map oid to pos of last committed version
          self._index = {}
          # _tindex: map oid to pos for new updates
--- 29,35 ----
          self._file = tempfile.TemporaryFile()
          # _pos: current file position
          # _tpos: file position at last commit point
!         self._pos = self._tpos = 0L
          # _index: map oid to pos of last committed version
          self._index = {}
          # _tindex: map oid to pos for new updates