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

Install 2.0 doesn't create "all hosts" record in mnet_hosts table

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Installation, MNet
    • Labels:
      None
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      When working on MDL-16879 and testing the upgrade_fix_incorrect_mnethostids() function, I've detected that the "all hosts" record of mnet_hosts isn't created anymore by lib/db/install.php. Only the "localhost" one is created.

      Note that mnet_enviroment->init() continues having it and also the upgrade_fix_incorrect_mnethostids() function recreates it if missing.

      So one of these must be achieved:

      1) if this is really on bug in lib/db/install.php ---> it should be fixed there, by adding the "all hosts" record.
      2) if that record isn't needed any more, both mnet_enviroment->init() and upgrade_fix_incorrect_mnethostids() must delete any use.

      Note I think it's 1), because it seems that there are a bunch of uses of "mnet_all_hosts_id" here and there in core.

      Ciao

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              stronk7 Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Matteo Scaramuccia, Andrew Nicols, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10