- Issue created by @hanksterr7
- πΊπΈUnited States hanksterr7
I have a solution (?) to the issue. I doubt this is the right way to fix this, but i offer this if anyone else has similar issues
This function lives in includes\sources.mysql.db.inc
If fetches the tables and views for a "source"
The problem is, it builds a static list of tables for a source. If you have multiple sources that are part of a backup job, and the sources have different tables, the static list built from the first source gets used for the subsequent sources. That causes the wrong list of tables to be looked at when trying to back up the subsequent sources
I reset $tableData to null so it would always get rebuilt when this function is called
Probably could have just removed the "static" attribute
Don't know what unintended consequences there are to this approach, but it now allows me to get all my db's backed up
/** * Get a list of table and view data in the db. */ protected function get_table_data() { static::$tableData = null; // add this if (empty(static::$tableData)) { $tables = $this->query('SHOW TABLE STATUS')->fetchAll(PDO::FETCH_ASSOC); foreach ($tables as $table) { // Lowercase the keys because between Drupal 7.12 and 7.13/14 the // default query behavior was changed. // See: http://drupal.org/node/1171866 $table = array_change_key_case($table); static::$tableData[$table['name']] = $table; } } return static::$tableData; }