Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9514

Correctly delete big datasets when deleting a forum including topics/posts on non-MySQL databases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.0.8-RC1
    • 3.0.7, 3.0.7-PL1
    • None
    • None
    • Affects: Any DB except MySQL.

      In acp_forums.php in function delete_forum_content() there is a do-loop to only delete a limited amount of data in one query, deleting the full data set in several iterations.

      However, the outer do-loop only performs one iteration because the continue condition is always false.
      Inner loop: while ($row = $db->sql_fetchrow($result))
      Outer loop: while ($row)

      MySQL is not affected because multi-table deletion is being used.

            bantu Andreas Fischer [X] (Inactive)
            bantu Andreas Fischer [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: