Skip to content

Commit

Permalink
fixup! repozo: factorize code doing the actual recover (write), in pr…
Browse files Browse the repository at this point in the history
…eparation to the implementation of the incremental recover
  • Loading branch information
Sebatyne committed Oct 22, 2024
1 parent d441b83 commit 67ab5a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZODB/scripts/repozo.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def recover_repofiles(options, repofiles, datfile, outfp):
'size': endpos - startpos,
'sum': sum,
}
totalsz = 0
totalsz = 0
for repofile in repofiles:
reposz, reposum = concat([repofile], outfp)
expected_truth = truth_dict[repofile]
Expand All @@ -431,7 +431,7 @@ def recover_repofiles(options, repofiles, datfile, outfp):
totalsz += reposz
log("Recovered chunk %s : %s bytes, md5: %s",
repofile, reposz, reposum)
log("Recovered a total of %s bytes", totalsz)
log("Recovered a total of %s bytes", totalsz)
else:
reposz, reposum = concat(repofiles, outfp)
log('Recovered %s bytes, md5: %s', reposz, reposum)
Expand Down

0 comments on commit 67ab5a6

Please sign in to comment.