1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

added variable NDB_MGM to be able to run the management client in tests

added testcase for Bug#8035
    added option to wait for not-started
    Bug#8035
This commit is contained in:
tomas@poseidon.ndb.mysql.com
2005-01-20 13:45:42 +01:00
parent c449637cea
commit ac53ecce1c
5 changed files with 58 additions and 9 deletions

View File

@ -182,12 +182,12 @@ static int lock_external(THD *thd, TABLE **tables, uint count)
if ((error=(*tables)->file->external_lock(thd,lock_type)))
{
print_lock_error(error, (*tables)->file->table_type());
for (; i-- ; tables--)
{
(*tables)->file->external_lock(thd, F_UNLCK);
(*tables)->current_lock=F_UNLCK;
}
print_lock_error(error, (*tables)->file->table_type());
DBUG_RETURN(error);
}
else
@ -375,12 +375,13 @@ static int unlock_external(THD *thd, TABLE **table,uint count)
{
(*table)->current_lock = F_UNLCK;
if ((error=(*table)->file->external_lock(thd, F_UNLCK)))
{
error_code=error;
print_lock_error(error_code, (*table)->file->table_type());
}
}
table++;
} while (--count);
if (error_code)
print_lock_error(error_code, (*table)->file->table_type());
DBUG_RETURN(error_code);
}