[BUGFIX] Avoid duplicates if ReferenceIndex is unable to finish
Solves an issue where DB may end up containing duplicates if the reference indexer is unable to finish, e.g. if memory or max execution time are exhausted. Such cases would leave duplicate indexed references. The patch avoids those duplicates by ensuring that the patch does not contain a sorting value, which lets the reference indexer retrieve the original reference even if it has a new sorting. Further an update wizard is added that allows to rewrite the hash of existing records. Resolves: #78829 Releases: master Change-Id: I145aa60460c5904a83b6c8373f107c7bfce8b434 Reviewed-on: https://review.typo3.org/50803 Reviewed-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
TYPO3com <no-reply@typo3.com> Reviewed-by:
Morton Jonuschat <m.jonuschat@mojocode.de> Tested-by:
Morton Jonuschat <m.jonuschat@mojocode.de>
Showing
- typo3/sysext/core/Classes/Database/ReferenceIndex.php 15 additions, 6 deletionstypo3/sysext/core/Classes/Database/ReferenceIndex.php
- typo3/sysext/install/Classes/Updates/SysRefindexHashUpdater.php 179 additions, 0 deletions...sysext/install/Classes/Updates/SysRefindexHashUpdater.php
- typo3/sysext/install/ext_localconf.php 2 additions, 0 deletionstypo3/sysext/install/ext_localconf.php