Commit 563c6b5a authored by catch's avatar catch

Issue #3074949 by amateescu, doidd, catch: Memory leak in the entity schema converter

(cherry picked from commit eee797f2)
parent 5e87ef71
......@@ -220,6 +220,9 @@ protected function copyData(EntityTypeInterface $entity_type, EntityTypeInterfac
$sandbox['current_id'] = $identifier;
}
// Reset the cache in order to free memory as we progress.
\Drupal::service('entity.memory_cache')->deleteAll();
// Get an updated count of entities that still need to migrated to the new
// storage.
$missing = $this->database->select($table_name, 't')
......
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