diff options
author | Monty <monty@mariadb.org> | 2020-05-28 22:40:27 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-05-29 22:47:37 +0300 |
commit | df4ab26a6bbbebd4b253b4179c225feb33d6d40f (patch) | |
tree | a1bcb88b91321070de4cf7aad2be40d6b16b66f8 /sql/handler.h | |
parent | 39dc46166297504f05ade40ae03f27adc0345b2f (diff) | |
download | mariadb-git-df4ab26a6bbbebd4b253b4179c225feb33d6d40f.tar.gz |
SHOW TABLE STATUS now shows if an Aria table is transactional or not
This change also affects information_schema.tables
The create table option "transactional=0 | 1" is now always shown for
storage engines that supports both transactional/crash safe tables and
non transactional tables.
Before this patch the transactional=... option was only shown if the user
specified transactional=... in the CREATE TABLE or ALTER TABLE statement.
The reason for the change was to be able to make it easy to know if an Aria
table is transactional or not.
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/handler.h b/sql/handler.h index 6a283b2dac3..6eaaf0f3256 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -340,8 +340,9 @@ enum chf_create_flags { #define HA_CAN_ONLINE_BACKUPS (1ULL << 56) /* Support native hash index */ -#define HA_CAN_HASH_KEYS (1ULL << 58) -#define HA_LAST_TABLE_FLAG HA_CAN_HASH_KEYS +#define HA_CAN_HASH_KEYS (1ULL << 57) +#define HA_CRASH_SAFE (1ULL << 58) +#define HA_LAST_TABLE_FLAG HA_CRASH_SAFE /* bits in index_flags(index_number) for what you can do with index */ #define HA_READ_NEXT 1 /* TODO really use this flag */ @@ -1773,6 +1774,12 @@ handlerton *ha_default_tmp_handlerton(THD *thd); */ #define HTON_NO_ROLLBACK (1 << 16) +/* + This storage engine can support both transactional and non transactional + tables +*/ +#define HTON_TRANSACTIONAL_AND_NON_TRANSACTIONAL (1 << 17) + class Ha_trx_info; struct THD_TRANS |