@@ -394,28 +394,6 @@ enum enum_table_category
394
394
*/
395
395
TABLE_CATEGORY_SYSTEM=3 ,
396
396
397
- /* *
398
- Information schema tables.
399
- These tables are an interface provided by the system
400
- to inspect the system metadata.
401
- These tables do *not* honor:
402
- - LOCK TABLE t FOR READ/WRITE
403
- - FLUSH TABLES WITH READ LOCK
404
- - SET GLOBAL READ_ONLY = ON
405
- as there is no point in locking explicitly
406
- an INFORMATION_SCHEMA table.
407
- Nothing is directly written to information schema tables.
408
- Note that this value is not used currently,
409
- since information schema tables are not shared,
410
- but implemented as session specific temporary tables.
411
- */
412
- /*
413
- TODO: Fixing the performance issues of I_S will lead
414
- to I_S tables in the table cache, which should use
415
- this table type.
416
- */
417
- TABLE_CATEGORY_INFORMATION=4 ,
418
-
419
397
/* *
420
398
Log tables.
421
399
These tables are an interface provided by the system
@@ -436,7 +414,33 @@ enum enum_table_category
436
414
The server implementation perform writes.
437
415
Log tables are cached in the table cache.
438
416
*/
439
- TABLE_CATEGORY_LOG=5 ,
417
+ TABLE_CATEGORY_LOG=4 ,
418
+
419
+ /*
420
+ Types below are read only tables, not affected by FLUSH TABLES or
421
+ MDL locks.
422
+ */
423
+ /* *
424
+ Information schema tables.
425
+ These tables are an interface provided by the system
426
+ to inspect the system metadata.
427
+ These tables do *not* honor:
428
+ - LOCK TABLE t FOR READ/WRITE
429
+ - FLUSH TABLES WITH READ LOCK
430
+ - SET GLOBAL READ_ONLY = ON
431
+ as there is no point in locking explicitly
432
+ an INFORMATION_SCHEMA table.
433
+ Nothing is directly written to information schema tables.
434
+ Note that this value is not used currently,
435
+ since information schema tables are not shared,
436
+ but implemented as session specific temporary tables.
437
+ */
438
+ /*
439
+ TODO: Fixing the performance issues of I_S will lead
440
+ to I_S tables in the table cache, which should use
441
+ this table type.
442
+ */
443
+ TABLE_CATEGORY_INFORMATION=5 ,
440
444
441
445
/* *
442
446
Performance schema tables.
@@ -460,6 +464,7 @@ enum enum_table_category
460
464
*/
461
465
TABLE_CATEGORY_PERFORMANCE=6
462
466
};
467
+
463
468
typedef enum enum_table_category TABLE_CATEGORY;
464
469
465
470
TABLE_CATEGORY get_table_category (const LEX_CSTRING *db,
0 commit comments