Tree still being maintained when entity_hierarchy_disable_writes=1
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3384392. --> Reported by: [jonathan_hunt](https://www.drupal.org/user/28976) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>A node complete migration was performing glacially even though I'd set <code>entity_hierarchy_disable_writes</code> to 1. It turns out <code>entity_hierarchy_entity_update()</code> was in play, trying to move children between revisions of a node.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Run a revision-aware migration involving destination nodes with an entity hierarchy relationship. Observe <code>entity_hierarchy_entity_update()</code> being invoked, even if tree maintenance is disabled.</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>Add a check in <code>entity_hierarchy_entity_update()</code> to return immediately if `entity_hierarchy_disable_writes` is true.</p>
issue