| 177 |
} |
} |
| 178 |
// Return to the previously set database. |
// Return to the previously set database. |
| 179 |
db_set_active($previous); |
db_set_active($previous); |
| 180 |
watchdog('db_maintenance', 'Optimized @table table in @db database.', array('@db' => $db_name, '@table' => $table_name), WATCHDOG_DEBUG); |
if (variable_get('db_maintenance_log', 0)) { |
| 181 |
|
watchdog('db_maintenance', 'Optimized @table table in @db database.', array('@db' => $db_name, '@table' => $table_name), WATCHDOG_DEBUG); |
| 182 |
|
} |
| 183 |
} |
} |
| 184 |
if (variable_get('db_maintenance_log', 0)) { |
if (variable_get('db_maintenance_log', 0)) { |
| 185 |
$tables = implode(', ', $config_tables); |
$tables = implode(', ', $config_tables); |