[Zodb-checkins] CVS: ZODB3/Tools - repozo.py:1.1.2.10
Tim Peters
tim.one at comcast.net
Sun Aug 17 00:28:37 EDT 2003
Update of /cvs-repository/ZODB3/Tools
In directory cvs.zope.org:/tmp/cvs-serv16607/Tools
Modified Files:
Tag: ZODB3-3_1-branch
repozo.py
Log Message:
do_backup(): in quick mode, if the checksums match and the .fs file
hasn't changed size since the last incremental, don't do anything (we
were writing out an incremental file for 0 bytes of "new data"; the non-
quick branch avoided this waste already).
=== ZODB3/Tools/repozo.py 1.1.2.9 => 1.1.2.10 ===
--- ZODB3/Tools/repozo.py:1.1.2.9 Sat Aug 16 23:05:31 2003
+++ ZODB3/Tools/repozo.py Sat Aug 16 23:28:31 2003
@@ -414,6 +414,9 @@
log('source checksum range: [%s..%s], sum: %s',
startpos, endpos, srcsum)
if sum == srcsum:
+ if srcsz == endpos:
+ log('No changes, nothing to do')
+ return
log('doing incremental, starting at: %s', endpos)
do_incremental_backup(options, endpos, repofiles)
return
More information about the Zodb-checkins
mailing list