Commit 5bd9dcef authored by webchick's avatar webchick
Browse files

#557582 by moshe weitzman: Reset statics after each update to conserve memory and avoid odd bugs.

parent ff813ab6
......@@ -410,6 +410,8 @@ function update_do_one($module, $number, &$context) {
// Record the schema update if it was completed successfully.
if ($context['finished'] == 1 && empty($context['results'][$module]['#abort'])) {
drupal_set_installed_schema_version($module, $number);
// Conserve memory and avoid errors by resetting all static variables.
drupal_static_reset();
}
$context['message'] = 'Updating ' . check_plain($module) . ' module';
......
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