Skip to content

Commit 3b4abd9

Browse files
committed
repozo: log files that will be used by the incremental recovery
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.
1 parent 93a1e06 commit 3b4abd9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ZODB/scripts/repozo.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,9 @@ def do_incremental_recover(options, repofiles):
814814
first_file_to_restore = repofiles.index(filename)
815815
assert first_file_to_restore > 0, (
816816
first_file_to_restore, options.repository, fn, filename, repofiles)
817+
log('remaining files needed to recover incrementally onto target file:')
818+
for f in repofiles[first_file_to_restore:]:
819+
log('\t%s', f)
817820

818821
temporary_output_file = options.output + '.part'
819822
os.rename(options.output, temporary_output_file)

0 commit comments

Comments
 (0)