function backup_migrate_source_db::lock_tables in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.3 includes/sources.db.inc \backup_migrate_source_db::lock_tables()
- 7.3 includes/sources.db.inc \backup_migrate_source_db::lock_tables()
Lock the database in anticipation of a backup.
1 call to backup_migrate_source_db::lock_tables()
- backup_migrate_source_db::backup_to_file in includes/
sources.db.inc - Backup from this source.
File
- includes/
sources.db.inc, line 247 - Functions to handle the direct to database destination.
Class
- backup_migrate_source_db
- A destination type for saving to a database server.
Code
function lock_tables($settings) {
if ($settings->filters['utils_lock_tables']) {
$tables = array();
foreach ($this
->get_table_names() as $table) {
// There's no need to lock excluded or structure only tables because it doesn't matter if they change.
if (empty($settings->filters['exclude_tables']) || !in_array($table, (array) $settings->filters['exclude_tables'])) {
$tables[] = $table;
}
}
$this
->_lock_tables($tables);
}
}