Commit 627c3455 authored by Jason Madden's avatar Jason Madden

Simplify removing persistent classes from the picklecache.

parent e4fcd41f
...@@ -396,8 +396,7 @@ class PickleCache(object): ...@@ -396,8 +396,7 @@ class PickleCache(object):
was_in_ring = self.ring.delete(value) was_in_ring = self.ring.delete(value)
self.non_ghost_count -= 1 self.non_ghost_count -= 1
elif oid in self.persistent_classes: elif oid in self.persistent_classes:
persistent_class = self.persistent_classes[oid] persistent_class = self.persistent_classes.pop(oid)
del self.persistent_classes[oid]
try: try:
# ZODB.persistentclass.PersistentMetaClass objects # ZODB.persistentclass.PersistentMetaClass objects
# have this method and it must be called for transaction abort # have this method and it must be called for transaction abort
......
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