summaryrefslogtreecommitdiff
path: root/innobase/include/row0upd.ic
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-04-22 14:04:18 +0300
committerunknown <marko@hundin.mysql.fi>2005-04-22 14:04:18 +0300
commit98dc4142b206ea3fcf1d7b4bd127baef1aeac2d4 (patch)
treee0d005c35a0eef1e1ffe58afae9a7cc2b6e1777f /innobase/include/row0upd.ic
parentf2c13c3f4fa493e4054e9d6c34a82d80af2bbafc (diff)
downloadmariadb-git-98dc4142b206ea3fcf1d7b4bd127baef1aeac2d4.tar.gz
InnoDB: Some low-level optimizations made based on OProfile results.
innobase/dict/dict0mem.c: dict_mem_table_create(): Add a debug assertion. innobase/include/btr0btr.ic: btr_node_ptr_get_child_page_no(): Add a UNIV_UNLIKELY hint. Remove a buf_frame_align() call. innobase/include/btr0cur.ic: btr_cur_get_page(): Add a debug assertion. innobase/include/buf0buf.ic: buf_block_peek_if_too_old(): Replace if() with return(). buf_block_align(), buf_frame_align(): Add UNIV_UNLIKELY hints. innobase/include/data0type.ic: dtype_get_fixed_size(): Add UNIV_UNLIKELY hints. innobase/include/mem0mem.ic: Remove signedness warning in debug assertion. innobase/include/read0read.ic: read_view_sees_trx_id(): Eliminate a comparison inside loop. innobase/include/row0sel.ic: open_step(): Add UNIV_EXPECT hint. innobase/include/row0upd.ic: upd_field_set_field_no(): Add a UNIV_UNLIKELY hint. innobase/include/sync0rw.ic: Add UNIV_LIKELY and UNIV_UNLIKELY hints. rw_lock_x_lock_func_nowait(): Eliminate a function call. Replace ut_a() assertions with ut_ad(). innobase/include/trx0rseg.ic: Add UNIV_UNLIKELY hints. innobase/include/ut0rnd.ic: ut_fold_binary(): Eliminate a loop variable to avoid register spilling on x86.
Diffstat (limited to 'innobase/include/row0upd.ic')
-rw-r--r--innobase/include/row0upd.ic2
1 files changed, 1 insertions, 1 deletions
diff --git a/innobase/include/row0upd.ic b/innobase/include/row0upd.ic
index e2d81a39cfa..acbb11aa1c7 100644
--- a/innobase/include/row0upd.ic
+++ b/innobase/include/row0upd.ic
@@ -83,7 +83,7 @@ upd_field_set_field_no(
{
upd_field->field_no = field_no;
- if (field_no >= dict_index_get_n_fields(index)) {
+ if (UNIV_UNLIKELY(field_no >= dict_index_get_n_fields(index))) {
fprintf(stderr,
"InnoDB: Error: trying to access field %lu in ",
(ulong) field_no);