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

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Installation, MNet
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE
    • Easy

    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

              skodak Petr Skoda
              stronk7 Eloy Lafuente (stronk7)
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Matteo Scaramuccia, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo, David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Nov/10