22 int myrg_lock_database(
MYRG_INFO *info,
int lock_type)
28 for (file=info->open_tables ; file != info->end_table ; file++)
37 (file->table)->owned_by_merge = TRUE;
39 if ((new_error=mi_lock_database(file->table,lock_type)))
42 if (lock_type != F_UNLCK)
44 while (--file >= info->open_tables)
45 mi_lock_database(file->table, F_UNLCK);