Commit 8a1646c3 authored by Julien Muchembled's avatar Julien Muchembled Committed by GitHub

Merge pull request #184 from zopefoundation/davisagli-pack-error-oid

Report full oid of missing object during pack
parents 87b26549 9ddfb58d
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
5.3.1 (unreleased) 5.3.1 (unreleased)
================== ==================
- Nothing changed yet. - If an object is missing from the index while packing a ``FileStorage``,
report its full ``oid``.
5.3.0 (2017-08-30) 5.3.0 (2017-08-30)
......
...@@ -270,7 +270,7 @@ class GC(FileStorageFormatter): ...@@ -270,7 +270,7 @@ class GC(FileStorageFormatter):
if oid == z64 and len(oid2curpos) == 0: if oid == z64 and len(oid2curpos) == 0:
# special case, pack to before creation time # special case, pack to before creation time
continue continue
raise raise KeyError(oid)
reachable[oid] = pos reachable[oid] = pos
for oid in self.findrefs(pos): for oid in self.findrefs(pos):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment