Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-28473

Mistake in lib/db/upgrade.php. Large databases (a lot of block_instance) stop during upgrade.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.1, 2.2
    • Fix Version/s: 2.0.5, 2.1.2
    • Component/s: Installation
    • Labels:
      None

      Description

      In lib/db/upgrade.php line 2124 (version of Tue Jul 5 2011, last git commit modified this file: 2fa78e85e9fa9b05f211fe77f469990768abf0d2) is:
      if (count($contextids) > 1000) {
      Should be:
      if (count($instanceids) > 1000) {

      This line (2124) is below the the line/condition:
      if ($oldversion < 2009082800) {

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  10/Oct/11