We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c21a6df commit 93a1e06Copy full SHA for 93a1e06
src/ZODB/scripts/repozo.py
@@ -760,7 +760,10 @@ def do_incremental_recover(options, repofiles):
760
datfile = os.path.splitext(repofiles[0])[0] + '.dat'
761
log('Recovering (incrementally) file to %s', options.output)
762
with open(options.output, 'r+b') as outfp:
763
- outfp.seek(0, 2)
+ # Note that we do not open the FileStorage to use getSize here,
764
+ # we really want the actual file size, even if there is invalid
765
+ # transaction data at the end.
766
+ outfp.seek(0, os.SEEK_END)
767
initial_length = outfp.tell()
768
769
error = ''
0 commit comments