You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ElggBatch uses offsets and limits to grab subsets of rows and then passes those rows though a callback. If the callback deletes rows, ElggBatch will never touch some of the rows because of the changing offset.
We need to come up with a way to allow the callback to delete entities.
Part of this fix is to restore elgg_delete_annotations() and elgg_delete_metadata() to using ElggBatch.
callback doesn't know about ElggBatch. The code that uses ElggBatch doesn't have a chance to rewind between queries. It has to be done by setting a parameter in ElggBatch - either in the constructor or in a setter.
Original ticket http://trac.elgg.org/ticket/4288 on 42028116-10-15 by brettp, assigned to brettp.
Elgg version: 1.8
ElggBatch uses offsets and limits to grab subsets of rows and then passes those rows though a callback. If the callback deletes rows, ElggBatch will never touch some of the rows because of the changing offset.
We need to come up with a way to allow the callback to delete entities.
Part of this fix is to restore elgg_delete_annotations() and elgg_delete_metadata() to using ElggBatch.
See also #4269.
The text was updated successfully, but these errors were encountered: