Commit c9d254d9 authored by Jeremy Hylton's avatar Jeremy Hylton

Stop search for undo records if packed transaction is encountered.

parent 57afe6a8
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
# may have a back pointer to a version record or to a non-version # may have a back pointer to a version record or to a non-version
# record. # record.
# #
__version__='$Revision: 1.91 $'[11:-2] __version__='$Revision: 1.92 $'[11:-2]
import struct, time, os, string, base64, sys import struct, time, os, string, base64, sys
from struct import pack, unpack from struct import pack, unpack
...@@ -1084,7 +1084,9 @@ class FileStorage(BaseStorage.BaseStorage, ...@@ -1084,7 +1084,9 @@ class FileStorage(BaseStorage.BaseStorage,
tid, tl, status, ul, dl, el = struct.unpack(">8s8scHHH", h) tid, tl, status, ul, dl, el = struct.unpack(">8s8scHHH", h)
if tid < self._packt: if tid < self._packt:
break break
if status != ' ': if status == 'p':
break
elif status != ' ':
continue continue
d = u = '' d = u = ''
if ul: if ul:
......
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