vasil
89423c0455
branches/zip:
...
Add auxiliary function lock_rec_get_index() to retrieve the index on
which the lock is.
Approved by: Heikki
2007-09-27 13:54:21 +00:00
vasil
ccd409b569
lock_get_type() needs to be accessed outside of the lock module, but it
...
is inline and accesses lock_t members.
As advised by Marko rename lock_get_type() to lock_get_type_low() and
create a public non-inline function lock_get_type() which calls
lock_get_type_low().
Approved by: Marko
2007-09-04 07:54:29 +00:00
vasil
8393a88e43
Add functions that retrieve some lock_t characteristics, needed in
...
INFORMATION_SCHEMA implementation:
lock_get_trx_id()
lock_get_mode_str()
lock_get_type_str()
lock_get_table_id()
lock_get_table_name()
lock_rec_get_index_name()
lock_rec_get_space_id()
lock_rec_get_page_no()
Approved by: Marko
2007-09-03 12:16:11 +00:00
vasil
1e3bf9ef79
branches/zip:
...
Move lock_rec_find_set_bit() from lock0priv.h to lock0lock.h. This
function is needed in the INFORMATION_SCHEMA implementation which
currently resides in trx/
Approved by: Marko
2007-09-03 09:08:25 +00:00
marko
0a780db994
branches/zip: Merge 1575:1664 from trunk.
2007-08-01 11:18:43 +00:00
marko
952b4b8de2
branches/zip: lock_rec_print(), lock_table_print(), lock_rec_get_prev():
...
Add a const qualifier to lock_t*.
2007-08-01 07:49:43 +00:00
marko
b09ce29aeb
branches/zip: Simplify lock_mode_stronger_or_eq() and lock_mode_compatible()
...
and introduce enum lock_mode.
lock_mode_stronger_or_eq(), lock_mode_compatible(): Replace if-then-else
chain with a bitwise and against a constant.
2007-02-01 20:56:23 +00:00
marko
0b89bb7905
branches/zip: Add __attribute__((const)) or __attribute__((pure))
...
to all fold functions.
2007-01-03 12:34:54 +00:00
marko
438cb8a6c1
branches/zip: Remove all buf_block_align() calls from lock0lock.c.
...
Replace all page_t* parameters with buf_block_t*, and replace many
rec_t* parameters with heap_no. This eliminates also many
rec_get_heap_no() calls, which became more expensive with the
introduction of ROW_FORMAT=COMPACT in MySQL/InnoDB 5.0.3.
page_rec_get_heap_no(), lock_get_min_heap_no(): New functions.
2006-10-24 06:45:52 +00:00
marko
d583b1803c
branches/zip: Eliminate many buf_block_align() calls.
...
Replace page_t* or page_zip_des_t* parameters in some functions with
buf_block_t*.
buf_frame_get_page_zip(): Disable unless #ifdef UNIV_DEBUG || UNIV_ZIP_DEBUG.
btr_cur_t: Add buf_block_t* page_block.
btr_pcur_get_block(), btr_cur_get_block(), btr_cur_get_page_zip():
New functions.
btr_cur_position(): Add the parameter block.
2006-10-18 11:39:31 +00:00
marko
0c4dfda3be
branches/zip: Merge revisions 265:459 from trunk.
2006-04-12 09:32:17 +00:00
marko
747c8fad44
branches/zip: Merge revisions 200:236 from trunk.
2006-02-23 19:25:29 +00:00
marko
dcfc19c47c
branches/zip: Merge revisions 79:200 from trunk.
2006-02-17 14:19:39 +00:00
osku
2903c72469
Import 5.0 code.
2005-10-27 07:29:40 +00:00