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

Documentation of $CFG->lock_factory in config-dist.php is wrong

XMLWordPrintable

      The documentation for the $CFG->lock_factory config setting in config-dist.php is:

      // Moodle 2.7 introduces a locking api for critical tasks (e.g. cron).
      // The default locking system to use is DB locking for MySQL and Postgres, and File
      // locking for Oracle and SQLServer. If $CFG->preventfilelocking is set, then the default
      // will always be DB locking.

      This is not what actually happens in lock_config::get_lock_factory(), as only Postgres has its own specific implementation. It should be something like:

      // Moodle 2.7 introduces a locking api for critical tasks (e.g. cron).
      // The default locking system to use is DB locking for Postgres, and file locking for
      // MySQL, Oracle and SQLServer. If $CFG->preventfilelocking is set, then the default
      // will always be DB locking.

            maherne Michael Aherne
            maherne Michael Aherne
            Damyon Wiese Damyon Wiese
            David Monllaó David Monllaó
            Frédéric Massart Frédéric Massart
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.