Commit 352ca9f1 authored by Julien Muchembled's avatar Julien Muchembled

Delete old meta_type index when converting to BTree to HBTree

Otherwise, deleting objects and packing would not free memory.
parent f0f17521
......@@ -609,10 +609,11 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn):
Remove remaining attributes from previous btree
and migration
"""
if getattr(self, "_tree", None) is not None:
delattr(self, "_tree")
if getattr(self, migration_process_lock, None) is not None:
delattr(self, migration_process_lock)
for attr in "_tree", "_mt_index", migration_process_lock:
try:
delattr(self, attr)
except AttributeError:
pass
def _launchCopyObjectToHBTree(self, tag):
"""
......
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