CREATE OR REPLACE TABLE
(MDEV-5491)
|
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 10.0.8 |
| Type: | Technical task | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||
| Description |
|
In the test case below, connection 'default' locks the table t1 with WRITE lock and re-creates the table using CREATE OR REPLACE. After that and until it performs UNLOCK, other connections cannot do SHOW TABLE (or new connections with auto-rehash cannot be established, etc.):
If CREATE OR REPLACE is supposed to restore the locks that the connection had before, currently it's not the case – the locks become stricter.
Note:
As I understand, MDL_STATEMENT is a duration, not a mode, it should not even appear in LOCK_MODE column. |
| Comments |
| Comment by Michael Widenius [ 2014-02-05 ] |
|
Fixed and pushed in 10.0-monty |