Skip to content

Commit

Permalink
repozo: log files that will be used by the incremental recovery
Browse files Browse the repository at this point in the history
As find_files logs all the files needed to recover the state from 0,
add a log to show which files will be effectively used in the case
of an incremental recovery.
  • Loading branch information
Sebatyne committed Jan 15, 2025
1 parent 93a1e06 commit 3b4abd9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ZODB/scripts/repozo.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,9 @@ def do_incremental_recover(options, repofiles):
first_file_to_restore = repofiles.index(filename)
assert first_file_to_restore > 0, (
first_file_to_restore, options.repository, fn, filename, repofiles)
log('remaining files needed to recover incrementally onto target file:')
for f in repofiles[first_file_to_restore:]:
log('\t%s', f)

temporary_output_file = options.output + '.part'
os.rename(options.output, temporary_output_file)
Expand Down

0 comments on commit 3b4abd9

Please sign in to comment.