diff options
author | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-11-05 09:42:23 +0200 |
---|---|---|
committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2015-11-05 10:30:48 +0200 |
commit | 25f8738112b05f33cfa45eabfebf6edfc80e6d8a (patch) | |
tree | d712ae201455bdefc223d22717c11bcd01000a8a /storage/xtradb/include/rem0rec.h | |
parent | f9e320c82daec5acc21884c2b09a139e19632c45 (diff) | |
download | mariadb-git-25f8738112b05f33cfa45eabfebf6edfc80e6d8a.tar.gz |
MDEV-9040: 10.1.8 fails after upgrade from 10.0.21
Analysis: Lengths which are not UNIV_SQL_NULL, but bigger than the following
number indicate that a field contains a reference to an externally
stored part of the field in the tablespace. The length field then
contains the sum of the following flag and the locally stored len.
This was incorrectly set to
define UNIV_EXTERN_STORAGE_FIELD (UNIV_SQL_NULL - UNIV_PAGE_SIZE_MAX)
When it should be
define UNIV_EXTERN_STORAGE_FIELD (UNIV_SQL_NULL - UNIV_PAGE_SIZE_DEF)
Additionally, we need to disable support for > 16K page size for
row compressed tables because a compressed page directory entry
reserves 14 bits for the start offset and 2 bits for flags.
This limits the uncompressed page size to 16k. To support
larger pages page directory entry needs to be larger.
Diffstat (limited to 'storage/xtradb/include/rem0rec.h')
-rw-r--r-- | storage/xtradb/include/rem0rec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/xtradb/include/rem0rec.h b/storage/xtradb/include/rem0rec.h index 238cb04e1f8..51c09bdc3ec 100644 --- a/storage/xtradb/include/rem0rec.h +++ b/storage/xtradb/include/rem0rec.h @@ -979,7 +979,7 @@ are given in one byte (resp. two byte) format. */ /* The data size of record must be smaller than this because we reserve two upmost bits in a two byte offset for special purposes */ -#define REC_MAX_DATA_SIZE (16 * 1024) +#define REC_MAX_DATA_SIZE (16384) #ifdef WITH_WSREP int wsrep_rec_get_foreign_key( |