Retrieve empty hash block. pithos/v0.7.9.1
authorAntony Chazapis <chazapis@gmail.com>
Mon, 7 Nov 2011 19:00:23 +0000 (21:00 +0200)
committerroot <root@pithos.dev.grnet.gr>
Mon, 7 Nov 2011 19:02:30 +0000 (21:02 +0200)
Fixes #1607

pithos/backends/lib/hashfiler/blocker.py

index 817376b..49aa20c 100644 (file)
@@ -115,6 +115,9 @@ class Blocker(object):
         block = None
 
         for h in hashes:
+            if h == self.emptyhash:
+                append('')
+                continue
             with self._get_rear_block(h, 0) as rbl:
                 if not rbl:
                     break