Commit 857bbe5b authored by Dries's avatar Dries

- Patch #894530 by David_Rothstein: update system calls...

- Patch #894530 by David_Rothstein: update system calls drupal_get_schema_versions() for lots of uninstalled modules, leading to a performance hit.
parent dd4e6c9c
......@@ -977,10 +977,13 @@ function update_get_update_list() {
$modules = drupal_get_installed_schema_version(NULL, FALSE, TRUE);
foreach ($modules as $module => $schema_version) {
$pending = array();
// Skip uninstalled and incompatible modules.
if ($schema_version == SCHEMA_UNINSTALLED || update_check_incompatibility($module)) {
continue;
}
// Otherwise, get the list of updates defined by this module.
$updates = drupal_get_schema_versions($module);
// Skip incompatible module updates, otherwise test schema versions.
if (!update_check_incompatibility($module) && $updates !== FALSE && $schema_version >= 0) {
if ($updates !== FALSE) {
// module_invoke returns NULL for nonexisting hooks, so if no updates
// are removed, it will == 0.
$last_removed = module_invoke($module, 'update_last_removed');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment