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