mariadb/storage/xtradb/include
Jan Lindström 2bedc3978b MDEV-9931: InnoDB reads first page of every .ibd file at startup
Analysis: By design InnoDB was reading first page of every .ibd file
at startup to find out is tablespace encrypted or not. This is
because tablespace could have been encrypted always, not
encrypted newer or encrypted based on configuration and this
information can be find realible only from first page of .ibd file.

Fix: Do not read first page of every .ibd file at startup. Instead
whenever tablespace is first time accedded we will read the first
page to find necessary information about tablespace encryption
status.

TODO: Add support for SYS_TABLEOPTIONS where all table options
encryption information included will be stored.
2016-09-22 16:38:24 +03:00
..
api0api.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
api0misc.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
btr0btr.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
btr0btr.ic MDEV-9931: InnoDB reads first page of every .ibd file at startup 2016-09-22 16:38:24 +03:00
btr0cur.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
btr0cur.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
btr0defragment.h MDEV-8769: Server crash at file btr0btr.ic line 122 when defragmenting encrypted table using incorrect keys 2015-09-14 12:15:27 +03:00
btr0pcur.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
btr0pcur.ic MDEV-8588: Assertion failure in file ha_innodb.cc line 21140 if at least one encrypted table exists and encryption service is not available 2015-09-04 20:19:45 +03:00
btr0scrub.h Push for testing of encryption 2015-02-10 10:21:17 +01:00
btr0sea.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
btr0sea.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
btr0types.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
buf0buddy.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
buf0buddy.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
buf0buf.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
buf0buf.ic Output more information when assertion 2016-06-28 17:27:47 +03:00
buf0checksum.h 5.6.25-73.1 2015-08-01 15:04:20 +02:00
buf0dblwr.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
buf0dump.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
buf0flu.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
buf0flu.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
buf0lru.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
buf0lru.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
buf0mtflu.h Merged latest mt-flush code to xtradb. Cleaned up thread statistic output 2014-02-07 15:31:31 +02:00
buf0rea.h MDEV-8588: Assertion failure in file ha_innodb.cc line 21140 if at least one encrypted table exists and encryption service is not available 2015-09-04 20:19:45 +03:00
buf0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
data0data.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
data0data.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
data0type.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
data0type.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
data0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
db0err.h MDEV-8764: Wrong error when encrypted table can't be decrypted. 2015-09-14 08:27:36 +03:00
dict0boot.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
dict0boot.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
dict0crea.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
dict0crea.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
dict0dict.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
dict0dict.ic Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
dict0load.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
dict0load.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
dict0mem.h MDEV-9931: InnoDB reads first page of every .ibd file at startup 2016-09-22 16:38:24 +03:00
dict0mem.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
dict0pagecompress.h Fixed merge error on InnoDB page compression level handling. 2014-02-03 10:08:15 +02:00
dict0pagecompress.ic InnoDB/XtraDB Encryption cleanup. 2015-04-07 23:44:56 +02:00
dict0priv.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
dict0priv.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
dict0stats.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
dict0stats.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
dict0stats_bg.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
dict0stats_bg.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
dict0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
dyn0dyn.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
dyn0dyn.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
eval0eval.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
eval0eval.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
eval0proc.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
eval0proc.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
fil0crypt.h MDEV-9931: InnoDB reads first page of every .ibd file at startup 2016-09-22 16:38:24 +03:00
fil0crypt.ic Add encryption key id to the API as a distinct concept 2015-04-09 19:35:40 +02:00
fil0fil.h MDEV-9931: InnoDB reads first page of every .ibd file at startup 2016-09-22 16:38:24 +03:00
fil0fil.ic compiler warnings 2016-01-27 16:40:15 +01:00
fil0pagecompress.h MDEV-9242: Innodb reports Assertion failure in file buf0dblwr.cc line 579 2016-04-29 13:47:49 +03:00
fsp0fsp.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
fsp0fsp.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
fsp0pagecompress.h Merged from 10.0-FusionIO: 2015-02-19 17:42:18 +02:00
fsp0pagecompress.ic MDEV-8770: Incorrect error message when importing page compressed tablespace 2015-09-22 07:35:00 +03:00
fsp0types.h MDEV-9040: 10.1.8 fails after upgrade from 10.0.21 2015-11-05 10:30:48 +02:00
fts0ast.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
fts0blex.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
fts0fts.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
fts0opt.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
fts0pars.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
fts0priv.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
fts0priv.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
fts0tlex.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
fts0types.h 5.6.30-76.3 2016-06-21 14:20:09 +02:00
fts0types.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
fts0vlc.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
fut0fut.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
fut0fut.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
fut0lst.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
fut0lst.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ha0ha.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ha0ha.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ha0storage.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ha0storage.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ha_prototypes.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
handler0alter.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
hash0hash.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
hash0hash.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ibuf0ibuf.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
ibuf0ibuf.ic 5.6.27-76.0 2015-12-13 10:13:18 +01:00
ibuf0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
lock0iter.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
lock0lock.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
lock0lock.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
lock0priv.h Merge branch 'merge/merge-xtradb-5.6' into 10.0 2016-08-10 19:55:45 +02:00
lock0priv.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
lock0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
log0crypt.h MDEV-9793: getting mysqld crypto key from key version failed 2016-03-30 16:09:47 +03:00
log0log.h Merge branch '10.0' into 10.1 2016-06-28 22:01:55 +02:00
log0log.ic Merge branch 'merge-xtradb-5.6' into 0.0 2016-06-21 15:27:09 +02:00
log0online.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
log0recv.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
log0recv.ic 5.6.30-76.3 2016-06-21 14:20:09 +02:00
mach0data.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
mach0data.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
mem0dbg.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
mem0dbg.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
mem0mem.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
mem0mem.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
mem0pool.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
mem0pool.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
mtr0log.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
mtr0log.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
mtr0mtr.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
mtr0mtr.ic Merge branch 'merge/merge-xtradb-5.6' into 10.0 2016-08-10 19:55:45 +02:00
mtr0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
os0file.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
os0file.ic MDEV-8901: InnoDB: Punch hole is incorrecty done also to log files causing assertion and database corruption 2015-10-06 15:40:26 +03:00
os0once.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
os0proc.h 5.6.27-76.0 2015-12-13 10:13:18 +01:00
os0proc.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
os0stacktrace.h MDEV-7369: MariaDB build fails when XTRADB_STORAGE_ENGINE enabled 2014-12-28 13:44:30 +02:00
os0sync.h MDEV-10341: InnoDB: Failing assertion: mutex_own(mutex) - mutex_exit_func 2016-08-23 21:24:36 +03:00
os0sync.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
os0thread.h Merge branch 'merge/merge-xtradb-5.6' into 10.0 2016-08-10 19:55:45 +02:00
os0thread.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
page0cur.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
page0cur.ic MDEV-8588: Assertion failure in file ha_innodb.cc line 21140 if at least one encrypted table exists and encryption service is not available 2015-09-04 20:19:45 +03:00
page0page.h Merge branch 'merge/merge-xtradb-5.6' into 10.0 2016-08-10 19:55:45 +02:00
page0page.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
page0types.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
page0zip.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
page0zip.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
pars0grm.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
pars0opt.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
pars0opt.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
pars0pars.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
pars0pars.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
pars0sym.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
pars0sym.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
pars0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
que0que.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
que0que.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
que0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
read0i_s.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
read0read.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
read0read.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
read0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
rem0cmp.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
rem0cmp.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
rem0rec.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
rem0rec.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
rem0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0ext.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0ext.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0ftsort.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
row0import.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0import.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0ins.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0ins.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0log.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
row0log.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0merge.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
row0mysql.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
row0mysql.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0purge.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0purge.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0quiesce.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0quiesce.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0row.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0row.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0sel.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0sel.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0uins.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0uins.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0umod.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0umod.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0undo.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0undo.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0upd.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0upd.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
row0vers.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
row0vers.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
srv0conc.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
srv0mon.h MDEV-9931: InnoDB reads first page of every .ibd file at startup 2016-09-22 16:38:24 +03:00
srv0mon.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
srv0srv.h MDEV-9931: InnoDB reads first page of every .ibd file at startup 2016-09-22 16:38:24 +03:00
srv0srv.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
srv0start.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
sync0arr.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
sync0arr.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
sync0rw.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
sync0rw.ic Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
sync0sync.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
sync0sync.ic Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
sync0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0i_s.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0purge.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0purge.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0rec.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
trx0rec.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0roll.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
trx0roll.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0rseg.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0rseg.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0sys.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
trx0sys.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0trx.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
trx0trx.ic 5.6.31-77.0 2016-08-10 19:24:58 +02:00
trx0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0undo.h Merge branch 'merge/merge-xtradb-5.6' into 10.0 2016-08-10 19:55:45 +02:00
trx0undo.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
trx0xa.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
univ.i Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
usr0sess.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
usr0sess.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
usr0types.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0bh.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0bh.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0byte.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
ut0byte.ic Remove some unnecessary parentheses 2016-05-26 10:33:17 +00:00
ut0counter.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0crc32.h Use POWER8 accelerated crc32 2015-12-15 15:11:17 +11:00
ut0dbg.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
ut0list.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0list.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0lst.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0mem.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
ut0mem.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0rbt.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0rnd.h 5.6.31-77.0 2016-08-10 19:24:58 +02:00
ut0rnd.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0sort.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0timer.h MDEV-5834: Merge Kakao Defragmentation implementation to MariaDB 10.1 2014-08-06 15:28:58 +03:00
ut0timer.ic MDEV-5834: Merge Kakao Defragmentation implementation to MariaDB 10.1 2014-08-06 15:28:58 +03:00
ut0ut.h Merge branch '10.0' into 10.1 2016-08-25 12:40:09 +02:00
ut0ut.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0vec.h move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0vec.ic move to storage/xtradb 2015-05-04 19:15:28 +02:00
ut0wqueue.h move to storage/xtradb 2015-05-04 19:15:28 +02:00