mariadb/include
marko 7d0ad4af4f branches/zip: Fix corruption of buf_pool->LRU_old and improve debug assertions.
This was reported as Issue #381.

buf_page_set_old(): Assert that blocks may only be set old if
buf_pool->LRU_old is initialized and buf_pool->LRU_old_len is nonzero.
Assert that buf_pool->LRU_old points to the block at the old/new boundary.

buf_LRU_old_adjust_len(): Invoke buf_page_set_old() after adjusting
buf_pool->LRU_old and buf_pool->LRU_old_len, in order not to violate
the added assertions.

buf_LRU_old_init(): Replace buf_page_set_old() with a direct
assignment to bpage->old, because these loops that initialize all the
blocks would temporarily violate the assertions about
buf_pool->LRU_old.

buf_LRU_remove_block(): When setting buf_pool->LRU_old = NULL, also
clear all bpage->old flags and set buf_pool->LRU_old_len = 0.

buf_LRU_add_block_to_end_low(), buf_LRU_add_block_low(): Move the
buf_page_set_old() call later in order not to violate the debug
assertions.  If buf_pool->LRU_old is NULL, set old=FALSE.

buf_LRU_free_block(): Replace the UNIV_LRU_DEBUG assertion with a
dummy buf_page_set_old() call that performs more thorough checks.

buf_LRU_validate(): Do not tolerate garbage in buf_pool->LRU_old_len
even if buf_pool->LRU_old is NULL.  Check that bpage->old is monotonic.

buf_relocate(): Make the UNIV_LRU_DEBUG checks stricter.

buf0buf.h: Revise the documentation of buf_page_t::old and
buf_pool_t::LRU_old_len.
2009-10-29 11:04:11 +00:00
..
btr0btr.h
btr0btr.ic branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
btr0cur.h branches/zip: non-functional changes 2009-10-13 14:23:35 +00:00
btr0cur.ic
btr0pcur.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
btr0pcur.ic
btr0sea.h
btr0sea.ic
btr0types.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
buf0buddy.h branches/zip: Add Doxygen comments to the rest of buf0*. 2009-06-04 05:58:23 +00:00
buf0buddy.ic
buf0buf.h branches/zip: Fix corruption of buf_pool->LRU_old and improve debug assertions. 2009-10-29 11:04:11 +00:00
buf0buf.ic branches/zip: Fix corruption of buf_pool->LRU_old and improve debug assertions. 2009-10-29 11:04:11 +00:00
buf0flu.h branches/zip rb://133 2009-07-08 15:11:40 +00:00
buf0flu.ic
buf0lru.h branches/zip: Replace the constant 3/8 ratio that controls the LRU_old 2009-08-27 06:25:00 +00:00
buf0lru.ic
buf0rea.h branches/zip 2009-08-27 15:20:35 +00:00
buf0types.h branches/zip rb://147 2009-08-27 15:00:27 +00:00
data0data.h
data0data.ic
data0type.h branches/zip: Add some Doxygen @return comments. 2009-05-27 05:08:43 +00:00
data0type.ic branches/zip: Add some Doxygen @return comments. 2009-05-27 05:08:43 +00:00
data0types.h
db0err.h
dict0boot.h
dict0boot.ic
dict0crea.h branches/zip: Replace <number> with NUMBER in some comments, 2009-08-05 10:06:55 +00:00
dict0crea.ic
dict0dict.h branches/zip: dict_index_find_cols(): On column name lookup failure, 2009-08-27 10:56:24 +00:00
dict0dict.ic
dict0load.h
dict0load.ic
dict0mem.h branches/zip: remove duplicate "the" in comments. 2009-08-06 22:04:03 +00:00
dict0mem.ic
dict0types.h
dyn0dyn.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
dyn0dyn.ic branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
eval0eval.h
eval0eval.ic
eval0proc.h
eval0proc.ic
fil0fil.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
fsp0fsp.h branches/zip: remove duplicate "the" in comments. 2009-08-06 22:04:03 +00:00
fsp0fsp.ic
fsp0types.h branches/zip: Merge revisions 4994:5148 from branches/5.1: 2009-05-27 10:46:42 +00:00
fut0fut.h
fut0fut.ic
fut0lst.h
fut0lst.ic
ha0ha.h branches/zip: ha_delete(): Remove this unused function that was 2009-06-30 09:30:14 +00:00
ha0ha.ic branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
ha0storage.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
ha0storage.ic
ha_prototypes.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
handler0alter.h
hash0hash.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
hash0hash.ic
ibuf0ibuf.h
ibuf0ibuf.ic branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
ibuf0types.h
lock0iter.h
lock0lock.h branches/zip: Fix a regression introduced by the fix for bug#26316. We check 2009-09-02 06:05:15 +00:00
lock0lock.ic
lock0priv.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
lock0priv.ic
lock0types.h
log0log.h branches/zip: log_reserve_and_write_fast(): Remove the redundant 2009-09-03 05:36:12 +00:00
log0log.ic branches/zip: Introduce UNIV_LOG_LSN_DEBUG and MLOG_LSN for redo log 2009-09-16 07:07:21 +00:00
log0recv.h branches/zip: recv_no_log_write: New debug flag for tracking down 2009-09-30 12:55:23 +00:00
log0recv.ic
mach0data.h
mach0data.ic
mem0dbg.h
mem0dbg.ic
mem0mem.h branches/zip: mem_heap_cat(): Unused, remove. 2009-06-30 10:56:36 +00:00
mem0mem.ic
mem0pool.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
mem0pool.ic
mtr0log.h branches/zip: Minor changes for Hot Backup to build correctly. (The 2009-06-22 12:27:55 +00:00
mtr0log.ic branches/zip: Minor changes for Hot Backup to build correctly. (The 2009-06-22 12:27:55 +00:00
mtr0mtr.h branches/zip: Introduce UNIV_LOG_LSN_DEBUG and MLOG_LSN for redo log 2009-09-16 07:07:21 +00:00
mtr0mtr.ic
mtr0types.h
mysql_addons.h
os0file.h branches/zip: Revert r6044 which added os_file_is_same() function 2009-10-08 08:24:56 +00:00
os0proc.h branches/zip: os_process_set_priority_boost(): Unused, remove. 2009-06-30 11:14:01 +00:00
os0proc.ic
os0sync.h branches/zip: 2009-09-14 07:38:45 +00:00
os0sync.ic
os0thread.h branches/zip: Declare os_thread_id_t as unsigned long, 2009-06-11 07:40:33 +00:00
os0thread.ic
page0cur.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
page0cur.ic
page0page.h branches/zip: Do not write to PAGE_INDEX_ID after page creation, 2009-09-28 07:52:25 +00:00
page0page.ic branches/zip: Change page_mem_alloc_free() to inline. 2009-10-14 21:29:01 +00:00
page0types.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
page0zip.h branches/zip: Do not write to PAGE_INDEX_ID after page creation, 2009-09-28 07:52:25 +00:00
page0zip.ic branches/zip: Add missing Doxygen comments for page0zip. 2009-06-04 09:37:35 +00:00
pars0grm.h
pars0opt.h
pars0opt.ic
pars0pars.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
pars0pars.ic
pars0sym.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
pars0sym.ic
pars0types.h
que0que.h branches/zip: que_graph_try_free(): Unused, remove. 2009-06-30 10:19:49 +00:00
que0que.ic
que0types.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
read0read.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
read0read.ic
read0types.h
rem0cmp.h branches/zip: remove duplicate "the" in comments. 2009-08-06 22:04:03 +00:00
rem0cmp.ic
rem0rec.h
rem0rec.ic branches/zip: remove duplicate "the" in comments. 2009-08-06 22:04:03 +00:00
rem0types.h
row0ext.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
row0ext.ic
row0ins.h branches/zip: non-functional changes 2009-09-30 19:32:02 +00:00
row0ins.ic
row0merge.h
row0mysql.h branches/zip: row_prebuilt_struct::prebuilts: Unused field, remove. 2009-10-26 07:32:23 +00:00
row0mysql.ic
row0purge.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
row0purge.ic
row0row.h branches/zip: row_build_row_ref_from_row(): Unused, remove. 2009-06-30 10:28:11 +00:00
row0row.ic
row0sel.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
row0sel.ic
row0types.h
row0uins.h
row0uins.ic
row0umod.h
row0umod.ic
row0undo.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
row0undo.ic
row0upd.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
row0upd.ic
row0vers.h
row0vers.ic
srv0que.h branches/zip: srv_que_task_queue_check(): Unused, remove. 2009-06-30 10:37:58 +00:00
srv0srv.h branches/zip rb://147 2009-08-27 15:00:27 +00:00
srv0srv.ic
srv0start.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
sync0arr.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
sync0arr.ic
sync0rw.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
sync0rw.ic
sync0sync.h branches/zip: Only use my_bool when UNIV_HOTBACKUP is not defined. 2009-07-19 23:08:49 +00:00
sync0sync.ic branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
sync0types.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
thr0loc.h
thr0loc.ic
trx0i_s.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
trx0purge.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
trx0purge.ic
trx0rec.h branches/zip: trx_undo_rec_copy(): Add const qualifier to undo_rec. 2009-08-12 12:16:37 +00:00
trx0rec.ic branches/zip: trx_undo_rec_copy(): Add const qualifier to undo_rec. 2009-08-12 12:16:37 +00:00
trx0roll.h branches/zip: Roll back recovered dictionary transactions before 2009-09-10 10:29:46 +00:00
trx0roll.ic
trx0rseg.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
trx0rseg.ic branches/zip: Merge revisions 4994:5148 from branches/5.1: 2009-05-27 10:46:42 +00:00
trx0sys.h branches/zip: Add functions for checking the format of tablespaces 2009-06-22 12:46:34 +00:00
trx0sys.ic branches/zip: remove duplicate "the" in comments. 2009-08-06 22:04:03 +00:00
trx0trx.h branches/zip: trx_cleanup_at_db_startup(): Fix a typo in comment. 2009-09-10 04:29:31 +00:00
trx0trx.ic
trx0types.h branches/zip: non-functional changes 2009-10-13 14:23:35 +00:00
trx0undo.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
trx0undo.ic
trx0xa.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
univ.i branches/zip: 2009-09-18 16:06:46 +00:00
usr0sess.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
usr0sess.ic
usr0types.h
ut0auxconf.h branches/zip: 2009-09-12 06:43:45 +00:00
ut0byte.h branches/zip: ut_align(): Make ptr const, like in ut_align_down(). 2009-09-03 07:28:35 +00:00
ut0byte.ic branches/zip: ut_align(): Make ptr const, like in ut_align_down(). 2009-09-03 07:28:35 +00:00
ut0dbg.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
ut0list.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
ut0list.ic
ut0lst.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
ut0mem.h
ut0mem.ic
ut0rnd.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00
ut0rnd.ic
ut0sort.h
ut0ut.h branches/zip: ut0ut.h: Do not #include "os0sync.h" #ifdef UNIV_HOTBACKUP. 2009-09-15 10:26:01 +00:00
ut0ut.ic
ut0vec.h
ut0vec.ic
ut0wqueue.h branches/zip: Add some Doxygen comments for many structs, typedefs, 2009-05-26 12:28:49 +00:00