1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fixed bug in lock tables introduced by shared locks.

New lock test
This commit is contained in:
monty@donna.mysql.fi
2001-03-27 13:05:48 +03:00
parent 62e6906bfb
commit e5da9a96de
4 changed files with 30 additions and 1 deletions

View File

@@ -1362,7 +1362,7 @@ int open_tables(THD *thd,TABLE_LIST *start)
result= -1; // Fatal error
break;
}
if (tables->lock_type != TL_UNLOCK)
if (tables->lock_type != TL_UNLOCK && ! thd->locked_tables)
tables->table->reginfo.lock_type=tables->lock_type;
tables->table->grant= tables->grant;
}