marko
cd247197cd
branches/zip: lock_sec_rec_read_check_and_lock(): Correct a typo in comment.
2007-10-22 07:49:54 +00:00
vasil
511cab191a
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
ad9b8c6a48
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
ccb384e236
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
4c8d01ef84
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
d662c3c656
branches/zip: Merge 1575:1664 from trunk.
2007-08-01 11:18:43 +00:00
marko
7827b838e6
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
35f83441a0
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
90b7b8abf5
branches/zip: Add __attribute__((const)) or __attribute__((pure))
...
to all fold functions.
2007-01-03 12:34:54 +00:00
marko
9b0a89867e
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
c659b59a5d
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
450bbd7c3b
branches/zip: Merge revisions 265:459 from trunk.
2006-04-12 09:32:17 +00:00
marko
f40121415d
branches/zip: Merge revisions 200:236 from trunk.
2006-02-23 19:25:29 +00:00
marko
6ce8427cb8
branches/zip: Merge revisions 79:200 from trunk.
2006-02-17 14:19:39 +00:00
osku
c307820962
Import 5.0 code.
2005-10-27 07:29:40 +00:00