diff options
author | Jan Lindström <jplindst@mariadb.org> | 2014-01-10 12:11:36 +0200 |
---|---|---|
committer | Jan Lindström <jplindst@mariadb.org> | 2014-01-10 12:11:36 +0200 |
commit | ec8257216e5b25ed82d63f074254b9454e0a0df3 (patch) | |
tree | 1e305907bd8d92ef7d324cf42ce0411a1898797c /storage/innobase/include/dict0pagecompress.ic | |
parent | 2b5a0a22802a0069f318f7d23a1071a703930c90 (diff) | |
download | mariadb-git-ec8257216e5b25ed82d63f074254b9454e0a0df3.tar.gz |
Enhancement: Change atomic_writes table option to enum type. Now every file can either use atomic writes, not use it or use default.
SYNTAX: ATOMIC_WRITES=['DEFAULT','ON','OFF']
Idea here is to be able to define innodb_doublewrite = 1 but with following rules:
ATOMIC_WRITES='DEFAULT' - if innodb_use_atomic_writes = 1, we do not write to doublewrite buffer the changes
if innodb_use_atomic_writes = 0, we write to doublewrite buffer
ATOMIC_WRITES='ON' - do not write to doublewrite buffer
ATOMIC_WRITES='OFF' - write to doublewrite buffer
Note that doublewrite buffer can't be used if innodb_doublewrite = 0.
Diffstat (limited to 'storage/innobase/include/dict0pagecompress.ic')
-rw-r--r-- | storage/innobase/include/dict0pagecompress.ic | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/storage/innobase/include/dict0pagecompress.ic b/storage/innobase/include/dict0pagecompress.ic index 98b64723542..fb9581fc657 100644 --- a/storage/innobase/include/dict0pagecompress.ic +++ b/storage/innobase/include/dict0pagecompress.ic @@ -168,24 +168,24 @@ dict_table_is_page_compressed( /********************************************************************//** Extract the atomic writes flag from table flags. -@return true if atomic writes are used, false if not used */ +@return enumerated value of atomic writes */ UNIV_INLINE -ibool +atomic_writes_t dict_tf_get_atomic_writes( /*======================*/ ulint flags) /*!< in: flags */ { - return(DICT_TF_GET_ATOMIC_WRITES(flags)); + return((atomic_writes_t)DICT_TF_GET_ATOMIC_WRITES(flags)); } /********************************************************************//** Check whether the table uses the atomic writes. -@return true if atomic writes is used, false if not */ +@return enumerated value of atomic writes */ UNIV_INLINE -ibool +atomic_writes_t dict_table_get_atomic_writes( /*=========================*/ const dict_table_t* table) /*!< in: table */ { - return (dict_tf_get_atomic_writes(table->flags)); + return ((atomic_writes_t)dict_tf_get_atomic_writes(table->flags)); } |