From 67ab5a6339fadc5cd7ad44a107c0e809daeeb194 Mon Sep 17 00:00:00 2001 From: Nicolas Wavrant Date: Tue, 22 Oct 2024 18:13:13 +0900 Subject: [PATCH] fixup! repozo: factorize code doing the actual recover (write), in preparation to the implementation of the incremental recover --- src/ZODB/scripts/repozo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ZODB/scripts/repozo.py b/src/ZODB/scripts/repozo.py index 1395d5262..ce6067447 100755 --- a/src/ZODB/scripts/repozo.py +++ b/src/ZODB/scripts/repozo.py @@ -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] @@ -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)