From: Michael Vrable Date: Mon, 21 Oct 2013 21:56:59 +0000 (-0700) Subject: Bugfix for database checksum reconstruction with zero blocks. X-Git-Url: https://git.vrable.net/?a=commitdiff_plain;h=710d0e959d9b79859df8568aac9741a79486d53a;p=cumulus.git Bugfix for database checksum reconstruction with zero blocks. --- diff --git a/python/cumulus/rebuild_database.py b/python/cumulus/rebuild_database.py index 39bf7c1..10a5f9a 100755 --- a/python/cumulus/rebuild_database.py +++ b/python/cumulus/rebuild_database.py @@ -301,6 +301,9 @@ class DatabaseRebuilder(object): buf = fp.read(length) verifier.update(buf) + # Zero blocks get no checksums, so skip further processing on them. + if object is None: continue + if exact: csum = cumulus.ChecksumCreator(CHECKSUM_ALGORITHM) csum.update(buf)