Project:Drupal core
Version:7.x-dev
Component:base system
Category:bug report
Priority:critical
Assigned:beejeebus
Status:closed (fixed)

Issue Summary

very small patch from looking at drupal_install_system as part of #340052: speedup simpletest by preloading the registry.

* we call drupal_init_database twice for no apparent reason
* drupal_install_init_database has a static variable that appears to be guarding against running its body twice, but its not updated on the first run

attached patch fixes these issues.

AttachmentSizeStatusTest resultOperations
dont_init_db_twice.patch1.06 KBIdlePassed: 7423 passes, 0 fails, 0 exceptionsView details

Comments

#1

Installing works after this patch, let's hope the testbot is happy too :)

#2

Status:needs review» fixed

Nice catch; this was completely silly.

Committed to HEAD.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here