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

Simplify test if we can use table in query cache

- Added TABLE_SHARE->not_usable_by_query_cache
- Moved TABLE->no_replicate to TABLE_SHARE->no_replicate as it's same for
  all TABLE instances
- Renamed TABLE_SHARE->cached_row_logging_check to can_do_row_logging
This commit is contained in:
Michael Widenius
2017-06-18 09:58:13 +03:00
committed by Sergei Golubchik
parent 1ed605e490
commit 8bfda2f0af
8 changed files with 53 additions and 62 deletions

View File

@@ -5895,7 +5895,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
DBUG_PRINT("info", ("table: %s; ha_table_flags: 0x%llx",
table->table_name, flags));
if (table->table->no_replicate)
if (table->table->s->no_replicate)
{
/*
The statement uses a table that is not replicated.