From 710d0e959d9b79859df8568aac9741a79486d53a Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Mon, 21 Oct 2013 14:56:59 -0700 Subject: [PATCH] Bugfix for database checksum reconstruction with zero blocks. --- python/cumulus/rebuild_database.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.20.1