MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry.
Find a file
marko 86361e032b branches/zip: Implement the configuration parameter and settable global
variable innodb_file_format.  Implement file format version stamping of
*.ibd files and SYS_TABLES.TYPE.

This change breaks introduces an incompatible change for for
compressed tables.  We can do this, as we have not released yet.

innodb-zip.test: Add tests for stricter KEY_BLOCK_SIZE and ROW_FORMAT
checks.

DICT_TF_COMPRESSED_MASK, DICT_TF_COMPRESSED_SHIFT: Replace with
DICT_TF_ZSSIZE_MASK, DICT_TF_ZSSIZE_SHIFT.

DICT_TF_FORMAT_MASK, DICT_TF_FORMAT_SHIFT, DICT_TF_FORMAT_51,
DICT_TF_FORMAT_ZIP: File format version, stored in table->flags,
in the .ibd file header, and in SYS_TABLES.TYPE.

dict_create_sys_tables_tuple(): Write the table flags to SYS_TABLES.TYPE
if the format is at least DICT_TF_FORMAT_ZIP.  For old formats
(DICT_TF_FORMAT_51), write DICT_TABLE_ORDINARY as the table type.

DB_TABLE_ZIP_NO_IBD: Remove the error code.  The error handling is done
in ha_innodb.cc; as a failsafe measure, dict_build_table_def_step() will
silently clear the compression and format flags instead of returning this
error.

dict_mem_table_create(): Assert that no extra bits are set in the flags.

dict_sys_tables_get_zip_size(): Rename to dict_sys_tables_get_flags().
Check all flag bits, and return ULINT_UNDEFINED if the combination is
unsupported.

dict_boot(): Document the SYS_TABLES columns N_COLS and TYPE.

dict_table_get_format(), dict_table_set_format(),
dict_table_flags_to_zip_size(): New accessors to table->flags.

dtuple_convert_big_rec(): Introduce the auxiliary variables
local_len, local_prefix_len.  Store a 768-byte prefix locally
if the file format is less than DICT_TF_FORMAT_ZIP.

dtuple_convert_back_big_rec(): Restore the columns.

srv_file_format: New variable: innodb_file_format.

fil_create_new_single_table_tablespace(): Replace the parameter zip_size
with table->flags.

fil_open_single_table_tablespace(): Replace the parameter zip_size_in_k
with table->flags.  Check the flags.

fil_space_struct, fil_space_create(), fil_op_write_log():
Replace zip_size with flags.

fil_node_open_file(): Note a TODO item for InnoDB Hot Backup.
Check that the tablespace flags match.

fil_space_get_zip_size(): Rename to fil_space_get_flags().  Add a
wrapper for fil_space_get_zip_size().

fsp_header_get_flags(): New function.

fsp_header_init_fields(): Replace zip_size with flags.

FSP_SPACE_FLAGS: New name for the tablespace flags.  This field used
to be called FSP_PAGE_ZIP_SIZE, or FSP_LOWEST_NO_WRITE.  It has always
been written as 0 in MySQL/InnoDB versions 4.1 to 5.1.

MLOG_ZIP_FILE_CREATE: Rename to MLOG_FILE_CREATE2.  Add a 32-bit
parameter for the tablespace flags.

ha_innobase::create(): Check the table attributes ROW_FORMAT and
KEY_BLOCK_SIZE.  Issue errors if they are inappropriate, or warnings
if the inherited attributes (in ALTER TABLE) will be ignored.

PAGE_ZIP_MIN_SIZE_SHIFT: New constant: the 2-logarithm of PAGE_ZIP_MIN_SIZE.
2008-03-10 11:05:32 +00:00
btr branches/zip: Improve the LRU algorithm with a separate unzip_LRU list of 2008-03-03 12:48:38 +00:00
buf branches/zip: buf_read_ahead_random(), buf_read_ahead_linear(): 2008-03-05 09:16:40 +00:00
data branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
dict branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
dyn branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
eval branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
fil branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
fsp branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
fut branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
ha branches/zip: ut_is_2pow(), ut_2pow_round(), ut_2pow_remainder(): Define 2008-03-05 09:41:51 +00:00
handler branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
ibuf branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
include branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
lock branches/zip: Fix most MSVC (Windows) compilation warnings. 2008-03-04 08:57:07 +00:00
log branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
mach branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
mem branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
mtr branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
mysql-test branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
os branches/zip: ut_is_2pow(), ut_2pow_round(), ut_2pow_remainder(): Define 2008-03-05 09:41:51 +00:00
page branches/zip: Fix most MSVC (Windows) compilation warnings. 2008-03-04 08:57:07 +00:00
pars branches/zip: make_flex.sh, lexyy.c: Remove some GCC warnings about unused 2008-02-07 10:03:54 +00:00
que branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
read branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
rem branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
row branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
scripts branches/zip: scripts/dynconfig: Correct misleading usage message. 2008-02-08 12:31:13 +00:00
srv branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
sync branches/zip: Merge 2263:2295 from branches/5.1. 2008-02-18 20:09:03 +00:00
thr branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
trx branches/zip: Implement the configuration parameter and settable global 2008-03-10 11:05:32 +00:00
usr branches/zip: Introduce UNIV_INTERN, a linkage specifier for InnoDB-global 2008-02-06 14:17:36 +00:00
ut branches/zip: Add a UNIV_INTERN qualifier to every global function declaration 2008-02-18 18:38:33 +00:00
CMakeLists.txt branches/zip: Update CMakeLists.txt to correspond to Makefile.am. 2008-02-29 21:45:22 +00:00
compile-innodb branches/zip: Merge revisions 767:789 from trunk. 2006-09-04 19:47:47 +00:00
compile-innodb-debug branches/zip: Merge revisions 767:789 from trunk. 2006-09-04 19:47:47 +00:00
innodb.patch branches/zip: Implement resizeable buffer pool. 2006-11-14 14:27:26 +00:00
Makefile.am branches/zip: Pass -prefer-non-pic only on IA-32 (x86) when building 2008-02-12 22:05:01 +00:00
plug.in branches/zip: Pass -prefer-non-pic only on IA-32 (x86) when building 2008-02-12 22:05:01 +00:00
revert_gen.sh branches/zip: Merge revisions 265:459 from trunk. 2006-04-12 09:32:17 +00:00
setup.sh branches/zip: Merge 2015:2093 from trunk. 2007-11-16 13:57:27 +00:00