don't init db twice

justinrandell - November 29, 2008 - 11:30
Project:Drupal
Version:7.x-dev
Component:base system
Category:bug report
Priority:critical
Assigned:justinrandell
Status:closed
Description

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 | Re-test

#1

swentel - November 29, 2008 - 11:40

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

#2

webchick - November 30, 2008 - 01:11
Status:needs review» fixed

Nice catch; this was completely silly.

Committed to HEAD.

#3

System Message - December 14, 2008 - 01:21
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.