Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
9ed26f72
Commit
9ed26f72
authored
Mar 13, 2004
by
marko@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
InnoDB: Replace ut_a(0) with ut_error
parent
9eede1c6
Changes
37
Show whitespace changes
Inline
Side-by-side
Showing
37 changed files
with
90 additions
and
90 deletions
+90
-90
innobase/btr/btr0btr.c
innobase/btr/btr0btr.c
+1
-1
innobase/buf/buf0flu.c
innobase/buf/buf0flu.c
+1
-1
innobase/buf/buf0lru.c
innobase/buf/buf0lru.c
+1
-1
innobase/data/data0data.c
innobase/data/data0data.c
+1
-1
innobase/dict/dict0crea.c
innobase/dict/dict0crea.c
+1
-1
innobase/dict/dict0dict.c
innobase/dict/dict0dict.c
+4
-4
innobase/dict/dict0load.c
innobase/dict/dict0load.c
+1
-1
innobase/fil/fil0fil.c
innobase/fil/fil0fil.c
+3
-3
innobase/fsp/fsp0fsp.c
innobase/fsp/fsp0fsp.c
+5
-5
innobase/ibuf/ibuf0ibuf.c
innobase/ibuf/ibuf0ibuf.c
+1
-1
innobase/include/buf0buf.ic
innobase/include/buf0buf.ic
+3
-3
innobase/include/data0type.ic
innobase/include/data0type.ic
+1
-1
innobase/include/mtr0log.ic
innobase/include/mtr0log.ic
+1
-1
innobase/include/trx0rseg.ic
innobase/include/trx0rseg.ic
+2
-2
innobase/lock/lock0lock.c
innobase/lock/lock0lock.c
+2
-2
innobase/log/log0log.c
innobase/log/log0log.c
+1
-1
innobase/log/log0recv.c
innobase/log/log0recv.c
+1
-1
innobase/mem/mem0pool.c
innobase/mem/mem0pool.c
+6
-6
innobase/mtr/mtr0log.c
innobase/mtr/mtr0log.c
+4
-4
innobase/os/os0file.c
innobase/os/os0file.c
+8
-8
innobase/page/page0cur.c
innobase/page/page0cur.c
+1
-1
innobase/page/page0page.c
innobase/page/page0page.c
+2
-2
innobase/pars/lexyy.c
innobase/pars/lexyy.c
+1
-1
innobase/que/que0que.c
innobase/que/que0que.c
+4
-4
innobase/rem/rem0cmp.c
innobase/rem/rem0cmp.c
+1
-1
innobase/rem/rem0rec.c
innobase/rem/rem0rec.c
+2
-2
innobase/row/row0ins.c
innobase/row/row0ins.c
+1
-1
innobase/row/row0mysql.c
innobase/row/row0mysql.c
+8
-8
innobase/row/row0purge.c
innobase/row/row0purge.c
+2
-2
innobase/row/row0row.c
innobase/row/row0row.c
+2
-2
innobase/row/row0sel.c
innobase/row/row0sel.c
+3
-3
innobase/row/row0undo.c
innobase/row/row0undo.c
+1
-1
innobase/srv/srv0srv.c
innobase/srv/srv0srv.c
+1
-1
innobase/sync/sync0arr.c
innobase/sync/sync0arr.c
+1
-1
innobase/trx/trx0purge.c
innobase/trx/trx0purge.c
+2
-2
innobase/trx/trx0trx.c
innobase/trx/trx0trx.c
+4
-4
innobase/trx/trx0undo.c
innobase/trx/trx0undo.c
+6
-6
No files found.
innobase/btr/btr0btr.c
View file @
9ed26f72
...
@@ -402,7 +402,7 @@ btr_get_size(
...
@@ -402,7 +402,7 @@ btr_get_size(
n
+=
fseg_n_reserved_pages
(
seg_header
,
&
dummy
,
&
mtr
);
n
+=
fseg_n_reserved_pages
(
seg_header
,
&
dummy
,
&
mtr
);
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
}
}
mtr_commit
(
&
mtr
);
mtr_commit
(
&
mtr
);
...
...
innobase/buf/buf0flu.c
View file @
9ed26f72
...
@@ -253,7 +253,7 @@ buf_flush_buffered_writes(void)
...
@@ -253,7 +253,7 @@ buf_flush_buffered_writes(void)
"InnoDB: files.
\n
"
,
"InnoDB: files.
\n
"
,
block
->
offset
,
block
->
space
);
block
->
offset
,
block
->
space
);
ut_
a
(
0
)
;
ut_
error
;
}
}
}
}
...
...
innobase/buf/buf0lru.c
View file @
9ed26f72
...
@@ -235,7 +235,7 @@ buf_LRU_get_free_block(void)
...
@@ -235,7 +235,7 @@ buf_LRU_get_free_block(void)
"InnoDB: on Linux!
\n
"
,
"InnoDB: on Linux!
\n
"
,
(
ulong
)(
buf_pool
->
curr_size
/
(
1024
*
1024
/
UNIV_PAGE_SIZE
)));
(
ulong
)(
buf_pool
->
curr_size
/
(
1024
*
1024
/
UNIV_PAGE_SIZE
)));
ut_
a
(
0
)
;
ut_
error
;
}
else
if
(
!
recv_recovery_on
&&
UT_LIST_GET_LEN
(
buf_pool
->
free
)
}
else
if
(
!
recv_recovery_on
&&
UT_LIST_GET_LEN
(
buf_pool
->
free
)
+
UT_LIST_GET_LEN
(
buf_pool
->
LRU
)
<
buf_pool
->
max_size
/
5
)
{
+
UT_LIST_GET_LEN
(
buf_pool
->
LRU
)
<
buf_pool
->
max_size
/
5
)
{
...
...
innobase/data/data0data.c
View file @
9ed26f72
...
@@ -261,7 +261,7 @@ dfield_check_typed(
...
@@ -261,7 +261,7 @@ dfield_check_typed(
"InnoDB: Error: data field type %lu, len %lu
\n
"
,
"InnoDB: Error: data field type %lu, len %lu
\n
"
,
dfield_get_type
(
field
)
->
mtype
,
dfield_get_len
(
field
));
dfield_get_type
(
field
)
->
mtype
,
dfield_get_len
(
field
));
ut_
a
(
0
)
;
ut_
error
;
}
}
return
(
TRUE
);
return
(
TRUE
);
...
...
innobase/dict/dict0crea.c
View file @
9ed26f72
...
@@ -158,7 +158,7 @@ dict_create_sys_tables_tuple(
...
@@ -158,7 +158,7 @@ dict_create_sys_tables_tuple(
if
(
table
->
type
==
DICT_TABLE_CLUSTER_MEMBER
)
{
if
(
table
->
type
==
DICT_TABLE_CLUSTER_MEMBER
)
{
dfield_set_data
(
dfield
,
table
->
cluster_name
,
dfield_set_data
(
dfield
,
table
->
cluster_name
,
ut_strlen
(
table
->
cluster_name
));
ut_strlen
(
table
->
cluster_name
));
ut_
a
(
0
)
;
/* Oracle-style clusters are not supported yet */
ut_
error
;
/* Oracle-style clusters are not supported yet */
}
else
{
}
else
{
dfield_set_data
(
dfield
,
NULL
,
UNIV_SQL_NULL
);
dfield_set_data
(
dfield
,
NULL
,
UNIV_SQL_NULL
);
}
}
...
...
innobase/dict/dict0dict.c
View file @
9ed26f72
...
@@ -208,7 +208,7 @@ dict_tables_have_same_db(
...
@@ -208,7 +208,7 @@ dict_tables_have_same_db(
}
}
}
}
ut_
a
(
0
)
;
ut_
error
;
return
(
FALSE
);
return
(
FALSE
);
}
}
...
@@ -231,7 +231,7 @@ dict_remove_db_name(
...
@@ -231,7 +231,7 @@ dict_remove_db_name(
}
}
}
}
ut_
a
(
0
)
;
ut_
error
;
return
(
NULL
);
return
(
NULL
);
}
}
...
@@ -254,7 +254,7 @@ dict_get_db_name_len(
...
@@ -254,7 +254,7 @@ dict_get_db_name_len(
}
}
}
}
ut_
a
(
0
)
;
ut_
error
;
return
(
0
);
return
(
0
);
}
}
...
@@ -1172,7 +1172,7 @@ dict_table_LRU_trim(void)
...
@@ -1172,7 +1172,7 @@ dict_table_LRU_trim(void)
dict_table_t
*
table
;
dict_table_t
*
table
;
dict_table_t
*
prev_table
;
dict_table_t
*
prev_table
;
ut_
a
(
0
)
;
ut_
error
;
#ifdef UNIV_SYNC_DEBUG
#ifdef UNIV_SYNC_DEBUG
ut_ad
(
mutex_own
(
&
(
dict_sys
->
mutex
)));
ut_ad
(
mutex_own
(
&
(
dict_sys
->
mutex
)));
...
...
innobase/dict/dict0load.c
View file @
9ed26f72
...
@@ -673,7 +673,7 @@ dict_load_table(
...
@@ -673,7 +673,7 @@ dict_load_table(
table
->
type
=
mach_read_from_4
(
field
);
table
->
type
=
mach_read_from_4
(
field
);
if
(
table
->
type
==
DICT_TABLE_CLUSTER_MEMBER
)
{
if
(
table
->
type
==
DICT_TABLE_CLUSTER_MEMBER
)
{
ut_
a
(
0
)
;
ut_
error
;
field
=
rec_get_nth_field
(
rec
,
6
,
&
len
);
field
=
rec_get_nth_field
(
rec
,
6
,
&
len
);
table
->
mix_id
=
mach_read_from_8
(
field
);
table
->
mix_id
=
mach_read_from_8
(
field
);
...
...
innobase/fil/fil0fil.c
View file @
9ed26f72
...
@@ -902,7 +902,7 @@ fil_node_prepare_for_io(
...
@@ -902,7 +902,7 @@ fil_node_prepare_for_io(
"InnoDB: Pending i/o's on %lu files exist
\n
"
,
"InnoDB: Pending i/o's on %lu files exist
\n
"
,
system
->
n_open_pending
);
system
->
n_open_pending
);
ut_
a
(
0
)
;
ut_
error
;
}
}
fil_node_close
(
last_node
,
system
);
fil_node_close
(
last_node
,
system
);
...
@@ -1209,7 +1209,7 @@ fil_io(
...
@@ -1209,7 +1209,7 @@ fil_io(
"InnoDB: Byte offset %lu, len %lu, i/o type %lu
\n
"
,
"InnoDB: Byte offset %lu, len %lu, i/o type %lu
\n
"
,
block_offset
,
space_id
,
byte_offset
,
len
,
type
);
block_offset
,
space_id
,
byte_offset
,
len
,
type
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
node
->
size
>
block_offset
)
{
if
(
node
->
size
>
block_offset
)
{
...
@@ -1339,7 +1339,7 @@ fil_aio_wait(
...
@@ -1339,7 +1339,7 @@ fil_aio_wait(
ret
=
os_aio_posix_handle
(
segment
,
&
fil_node
,
&
message
);
ret
=
os_aio_posix_handle
(
segment
,
&
fil_node
,
&
message
);
#else
#else
ret
=
0
;
/* Eliminate compiler warning */
ret
=
0
;
/* Eliminate compiler warning */
ut_
a
(
0
)
;
ut_
error
;
#endif
#endif
}
else
{
}
else
{
srv_io_thread_op_info
[
segment
]
=
(
char
*
)
"simulated aio handle"
;
srv_io_thread_op_info
[
segment
]
=
(
char
*
)
"simulated aio handle"
;
...
...
innobase/fsp/fsp0fsp.c
View file @
9ed26f72
...
@@ -1275,7 +1275,7 @@ fsp_alloc_free_page(
...
@@ -1275,7 +1275,7 @@ fsp_alloc_free_page(
ut_print_buf
(((
byte
*
)
descr
)
-
500
,
1000
);
ut_print_buf
(((
byte
*
)
descr
)
-
500
,
1000
);
ut_
a
(
0
)
;
ut_
error
;
}
}
xdes_set_bit
(
descr
,
XDES_FREE_BIT
,
free
,
FALSE
,
mtr
);
xdes_set_bit
(
descr
,
XDES_FREE_BIT
,
free
,
FALSE
,
mtr
);
...
@@ -1359,7 +1359,7 @@ fsp_free_page(
...
@@ -1359,7 +1359,7 @@ fsp_free_page(
return
;
return
;
}
}
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
xdes_get_bit
(
descr
,
XDES_FREE_BIT
,
page
%
FSP_EXTENT_SIZE
,
mtr
)
if
(
xdes_get_bit
(
descr
,
XDES_FREE_BIT
,
page
%
FSP_EXTENT_SIZE
,
mtr
)
...
@@ -1429,7 +1429,7 @@ fsp_free_extent(
...
@@ -1429,7 +1429,7 @@ fsp_free_extent(
ut_print_buf
(((
byte
*
)
descr
)
-
500
,
1000
);
ut_print_buf
(((
byte
*
)
descr
)
-
500
,
1000
);
ut_
a
(
0
)
;
ut_
error
;
}
}
xdes_init
(
descr
,
mtr
);
xdes_init
(
descr
,
mtr
);
...
@@ -2708,7 +2708,7 @@ fseg_free_page_low(
...
@@ -2708,7 +2708,7 @@ fseg_free_page_low(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: If the InnoDB recovery crashes here, see section 6.1
\n
"
"InnoDB: If the InnoDB recovery crashes here, see section 6.1
\n
"
"InnoDB: of http://www.innodb.com/ibman.html about forcing recovery.
\n
"
);
"InnoDB: of http://www.innodb.com/ibman.html about forcing recovery.
\n
"
);
ut_
a
(
0
)
;
ut_
error
;
}
}
state
=
xdes_get_state
(
descr
,
mtr
);
state
=
xdes_get_state
(
descr
,
mtr
);
...
@@ -2798,7 +2798,7 @@ fseg_free_page_low(
...
@@ -2798,7 +2798,7 @@ fseg_free_page_low(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: If the InnoDB recovery crashes here, see section 6.1
\n
"
"InnoDB: If the InnoDB recovery crashes here, see section 6.1
\n
"
"InnoDB: of http://www.innodb.com/ibman.html about forcing recovery.
\n
"
);
"InnoDB: of http://www.innodb.com/ibman.html about forcing recovery.
\n
"
);
ut_
a
(
0
)
;
ut_
error
;
}
}
not_full_n_used
=
mtr_read_ulint
(
seg_inode
+
FSEG_NOT_FULL_N_USED
,
not_full_n_used
=
mtr_read_ulint
(
seg_inode
+
FSEG_NOT_FULL_N_USED
,
...
...
innobase/ibuf/ibuf0ibuf.c
View file @
9ed26f72
...
@@ -2651,7 +2651,7 @@ ibuf_merge_or_delete_for_page(
...
@@ -2651,7 +2651,7 @@ ibuf_merge_or_delete_for_page(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Fatal error: you are downgrading from >= 4.1.1 to 4.0, but
\n
"
"InnoDB: Fatal error: you are downgrading from >= 4.1.1 to 4.0, but
\n
"
"InnoDB: the insert buffer was not empty.
\n
"
);
"InnoDB: the insert buffer was not empty.
\n
"
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
corruption_noticed
)
{
if
(
corruption_noticed
)
{
...
...
innobase/include/buf0buf.ic
View file @
9ed26f72
...
@@ -220,7 +220,7 @@ buf_block_align(
...
@@ -220,7 +220,7 @@ buf_block_align(
"InnoDB: Error: trying to access a stray pointer %lx\n"
"InnoDB: Error: trying to access a stray pointer %lx\n"
"InnoDB: buf pool start is at %lx, number of pages %lu\n", (ulint)ptr,
"InnoDB: buf pool start is at %lx, number of pages %lu\n", (ulint)ptr,
(ulint)frame_zero, buf_pool->max_size);
(ulint)frame_zero, buf_pool->max_size);
ut_
a(0)
;
ut_
error
;
}
}
return(block);
return(block);
...
@@ -254,7 +254,7 @@ buf_block_align_low(
...
@@ -254,7 +254,7 @@ buf_block_align_low(
"InnoDB: Error: trying to access a stray pointer %lx\n"
"InnoDB: Error: trying to access a stray pointer %lx\n"
"InnoDB: buf pool start is at %lx, number of pages %lu\n", (ulint)ptr,
"InnoDB: buf pool start is at %lx, number of pages %lu\n", (ulint)ptr,
(ulint)frame_zero, buf_pool->max_size);
(ulint)frame_zero, buf_pool->max_size);
ut_
a(0)
;
ut_
error
;
}
}
return(block);
return(block);
...
@@ -283,7 +283,7 @@ buf_frame_align(
...
@@ -283,7 +283,7 @@ buf_frame_align(
"InnoDB: Error: trying to access a stray pointer %lx\n"
"InnoDB: Error: trying to access a stray pointer %lx\n"
"InnoDB: buf pool start is at %lx, number of pages %lu\n", (ulint)ptr,
"InnoDB: buf pool start is at %lx, number of pages %lu\n", (ulint)ptr,
(ulint)(buf_pool->frame_zero), buf_pool->max_size);
(ulint)(buf_pool->frame_zero), buf_pool->max_size);
ut_
a(0)
;
ut_
error
;
}
}
return(frame);
return(frame);
...
...
innobase/include/data0type.ic
View file @
9ed26f72
...
@@ -216,7 +216,7 @@ dtype_get_fixed_size(
...
@@ -216,7 +216,7 @@ dtype_get_fixed_size(
case DATA_VARMYSQL:
case DATA_VARMYSQL:
case DATA_BLOB:
case DATA_BLOB:
return(0);
return(0);
default: ut_
a(0)
;
default: ut_
error
;
}
}
return(0);
return(0);
...
...
innobase/include/mtr0log.ic
View file @
9ed26f72
...
@@ -167,7 +167,7 @@ mlog_write_initial_log_record_fast(
...
@@ -167,7 +167,7 @@ mlog_write_initial_log_record_fast(
fprintf(stderr,
fprintf(stderr,
"InnoDB: error: buffer page pointer %lx has nonsensical space id %lu\n"
"InnoDB: error: buffer page pointer %lx has nonsensical space id %lu\n"
"InnoDB: or page no %lu\n", (ulint)ptr, space, offset);
"InnoDB: or page no %lu\n", (ulint)ptr, space, offset);
ut_
a(0)
;
ut_
error
;
}
}
mach_write_to_1(log_ptr, type);
mach_write_to_1(log_ptr, type);
...
...
innobase/include/trx0rseg.ic
View file @
9ed26f72
...
@@ -68,7 +68,7 @@ trx_rsegf_get_nth_undo(
...
@@ -68,7 +68,7 @@ trx_rsegf_get_nth_undo(
if (n >= TRX_RSEG_N_SLOTS) {
if (n >= TRX_RSEG_N_SLOTS) {
fprintf(stderr,
fprintf(stderr,
"InnoDB: Error: trying to get slot %lu of rseg\n", n);
"InnoDB: Error: trying to get slot %lu of rseg\n", n);
ut_
a(0)
;
ut_
error
;
}
}
return(mtr_read_ulint(rsegf + TRX_RSEG_UNDO_SLOTS +
return(mtr_read_ulint(rsegf + TRX_RSEG_UNDO_SLOTS +
...
@@ -89,7 +89,7 @@ trx_rsegf_set_nth_undo(
...
@@ -89,7 +89,7 @@ trx_rsegf_set_nth_undo(
if (n >= TRX_RSEG_N_SLOTS) {
if (n >= TRX_RSEG_N_SLOTS) {
fprintf(stderr,
fprintf(stderr,
"InnoDB: Error: trying to set slot %lu of rseg\n", n);
"InnoDB: Error: trying to set slot %lu of rseg\n", n);
ut_
a(0)
;
ut_
error
;
}
}
mlog_write_ulint(rsegf + TRX_RSEG_UNDO_SLOTS + n * TRX_RSEG_SLOT_SIZE,
mlog_write_ulint(rsegf + TRX_RSEG_UNDO_SLOTS + n * TRX_RSEG_SLOT_SIZE,
...
...
innobase/lock/lock0lock.c
View file @
9ed26f72
...
@@ -1611,7 +1611,7 @@ lock_rec_enqueue_waiting(
...
@@ -1611,7 +1611,7 @@ lock_rec_enqueue_waiting(
if
(
que_thr_stop
(
thr
))
{
if
(
que_thr_stop
(
thr
))
{
ut_
a
(
0
)
;
ut_
error
;
return
(
DB_QUE_THR_SUSPENDED
);
return
(
DB_QUE_THR_SUSPENDED
);
}
}
...
@@ -3272,7 +3272,7 @@ lock_table_enqueue_waiting(
...
@@ -3272,7 +3272,7 @@ lock_table_enqueue_waiting(
stopped anyway */
stopped anyway */
if
(
que_thr_stop
(
thr
))
{
if
(
que_thr_stop
(
thr
))
{
ut_
a
(
0
)
;
ut_
error
;
return
(
DB_QUE_THR_SUSPENDED
);
return
(
DB_QUE_THR_SUSPENDED
);
}
}
...
...
innobase/log/log0log.c
View file @
9ed26f72
...
@@ -1026,7 +1026,7 @@ log_io_complete(
...
@@ -1026,7 +1026,7 @@ log_io_complete(
return
;
return
;
}
}
ut_
a
(
0
)
;
/* We currently use synchronous writing of the
ut_
error
;
/* We currently use synchronous writing of the
logs and cannot end up here! */
logs and cannot end up here! */
if
(
srv_unix_file_flush_method
!=
SRV_UNIX_O_DSYNC
if
(
srv_unix_file_flush_method
!=
SRV_UNIX_O_DSYNC
...
...
innobase/log/log0recv.c
View file @
9ed26f72
...
@@ -160,7 +160,7 @@ recv_sys_empty_hash(void)
...
@@ -160,7 +160,7 @@ recv_sys_empty_hash(void)
"InnoDB: Error: %lu pages with log records were left unprocessed!
\n
"
"InnoDB: Error: %lu pages with log records were left unprocessed!
\n
"
"InnoDB: Maximum page number with log records on it %lu
\n
"
,
"InnoDB: Maximum page number with log records on it %lu
\n
"
,
recv_sys
->
n_addrs
,
recv_max_parsed_page_no
);
recv_sys
->
n_addrs
,
recv_max_parsed_page_no
);
ut_
a
(
0
)
;
ut_
error
;
}
}
hash_table_free
(
recv_sys
->
addr_hash
);
hash_table_free
(
recv_sys
->
addr_hash
);
...
...
innobase/mem/mem0pool.c
View file @
9ed26f72
...
@@ -297,7 +297,7 @@ mem_pool_fill_free_list(
...
@@ -297,7 +297,7 @@ mem_pool_fill_free_list(
if
(
UT_LIST_GET_LEN
(
pool
->
free_list
[
i
+
1
])
==
0
)
{
if
(
UT_LIST_GET_LEN
(
pool
->
free_list
[
i
+
1
])
==
0
)
{
mem_analyze_corruption
((
byte
*
)
area
);
mem_analyze_corruption
((
byte
*
)
area
);
ut_
a
(
0
)
;
ut_
error
;
}
}
UT_LIST_REMOVE
(
free_list
,
pool
->
free_list
[
i
+
1
],
area
);
UT_LIST_REMOVE
(
free_list
,
pool
->
free_list
[
i
+
1
],
area
);
...
@@ -375,7 +375,7 @@ mem_area_alloc(
...
@@ -375,7 +375,7 @@ mem_area_alloc(
"InnoDB: Probably a race condition because now the area is marked free!
\n
"
);
"InnoDB: Probably a race condition because now the area is marked free!
\n
"
);
}
}
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
UT_LIST_GET_LEN
(
pool
->
free_list
[
n
])
==
0
)
{
if
(
UT_LIST_GET_LEN
(
pool
->
free_list
[
n
])
==
0
)
{
...
@@ -385,7 +385,7 @@ mem_area_alloc(
...
@@ -385,7 +385,7 @@ mem_area_alloc(
n
);
n
);
mem_analyze_corruption
((
byte
*
)
area
);
mem_analyze_corruption
((
byte
*
)
area
);
ut_
a
(
0
)
;
ut_
error
;
}
}
ut_ad
(
mem_area_get_size
(
area
)
==
ut_2_exp
(
n
));
ut_ad
(
mem_area_get_size
(
area
)
==
ut_2_exp
(
n
));
...
@@ -481,7 +481,7 @@ mem_area_free(
...
@@ -481,7 +481,7 @@ mem_area_free(
"InnoDB: element is marked free!
\n
"
);
"InnoDB: element is marked free!
\n
"
);
mem_analyze_corruption
((
byte
*
)
area
);
mem_analyze_corruption
((
byte
*
)
area
);
ut_
a
(
0
)
;
ut_
error
;
}
}
size
=
mem_area_get_size
(
area
);
size
=
mem_area_get_size
(
area
);
...
@@ -492,7 +492,7 @@ mem_area_free(
...
@@ -492,7 +492,7 @@ mem_area_free(
"InnoDB: previous allocated area!
\n
"
);
"InnoDB: previous allocated area!
\n
"
);
mem_analyze_corruption
((
byte
*
)
area
);
mem_analyze_corruption
((
byte
*
)
area
);
ut_
a
(
0
)
;
ut_
error
;
}
}
#ifdef UNIV_LIGHT_MEM_DEBUG
#ifdef UNIV_LIGHT_MEM_DEBUG
...
@@ -509,7 +509,7 @@ mem_area_free(
...
@@ -509,7 +509,7 @@ mem_area_free(
size
,
next_size
);
size
,
next_size
);
mem_analyze_corruption
((
byte
*
)
area
);
mem_analyze_corruption
((
byte
*
)
area
);
ut_
a
(
0
)
;
ut_
error
;
}
}
}
}
#endif
#endif
...
...
innobase/mtr/mtr0log.c
View file @
9ed26f72
...
@@ -59,7 +59,7 @@ mlog_write_initial_log_record(
...
@@ -59,7 +59,7 @@ mlog_write_initial_log_record(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
(
ulint
)
ptr
);
(
ulint
)
ptr
);
ut_
a
(
0
)
;
ut_
error
;
}
}
log_ptr
=
mlog_open
(
mtr
,
20
);
log_ptr
=
mlog_open
(
mtr
,
20
);
...
@@ -222,7 +222,7 @@ mlog_write_ulint(
...
@@ -222,7 +222,7 @@ mlog_write_ulint(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
(
ulint
)
ptr
);
(
ulint
)
ptr
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
type
==
MLOG_1BYTE
)
{
if
(
type
==
MLOG_1BYTE
)
{
...
@@ -269,7 +269,7 @@ mlog_write_dulint(
...
@@ -269,7 +269,7 @@ mlog_write_dulint(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
(
ulint
)
ptr
);
(
ulint
)
ptr
);
ut_
a
(
0
)
;
ut_
error
;
}
}
ut_ad
(
ptr
&&
mtr
);
ut_ad
(
ptr
&&
mtr
);
...
@@ -313,7 +313,7 @@ mlog_write_string(
...
@@ -313,7 +313,7 @@ mlog_write_string(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
"InnoDB: Error: trying to write to a stray memory location %lx
\n
"
,
(
ulint
)
ptr
);
(
ulint
)
ptr
);
ut_
a
(
0
)
;
ut_
error
;
}
}
ut_ad
(
ptr
&&
mtr
);
ut_ad
(
ptr
&&
mtr
);
ut_a
(
len
<
UNIV_PAGE_SIZE
);
ut_a
(
len
<
UNIV_PAGE_SIZE
);
...
...
innobase/os/os0file.c
View file @
9ed26f72
...
@@ -722,7 +722,7 @@ os_file_create(
...
@@ -722,7 +722,7 @@ os_file_create(
}
else
if
(
type
==
OS_DATA_FILE
)
{
}
else
if
(
type
==
OS_DATA_FILE
)
{
type_str
=
"DATA"
;
type_str
=
"DATA"
;
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
purpose
==
OS_FILE_AIO
)
{
if
(
purpose
==
OS_FILE_AIO
)
{
...
@@ -730,7 +730,7 @@ os_file_create(
...
@@ -730,7 +730,7 @@ os_file_create(
}
else
if
(
purpose
==
OS_FILE_NORMAL
)
{
}
else
if
(
purpose
==
OS_FILE_NORMAL
)
{
purpose_str
=
"NORMAL"
;
purpose_str
=
"NORMAL"
;
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
}
}
/* printf("Opening file %s, mode %s, type %s, purpose %s\n",
/* printf("Opening file %s, mode %s, type %s, purpose %s\n",
...
@@ -1016,7 +1016,7 @@ os_file_flush(
...
@@ -1016,7 +1016,7 @@ os_file_flush(
/* It is a fatal error if a file flush does not succeed, because then
/* It is a fatal error if a file flush does not succeed, because then
the database can get corrupt on disk */
the database can get corrupt on disk */
ut_
a
(
0
)
;
ut_
error
;
return
(
FALSE
);
return
(
FALSE
);
#else
#else
...
@@ -1050,7 +1050,7 @@ os_file_flush(
...
@@ -1050,7 +1050,7 @@ os_file_flush(
/* It is a fatal error if a file flush does not succeed, because then
/* It is a fatal error if a file flush does not succeed, because then
the database can get corrupt on disk */
the database can get corrupt on disk */
ut_
a
(
0
)
;
ut_
error
;
return
(
FALSE
);
return
(
FALSE
);
#endif
#endif
...
@@ -1801,7 +1801,7 @@ os_aio_get_array_no(
...
@@ -1801,7 +1801,7 @@ os_aio_get_array_no(
return
(
3
);
return
(
3
);
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
return
(
0
);
return
(
0
);
}
}
...
@@ -1828,7 +1828,7 @@ os_aio_get_array_from_no(
...
@@ -1828,7 +1828,7 @@ os_aio_get_array_from_no(
return
(
os_aio_write_array
);
return
(
os_aio_write_array
);
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
return
(
NULL
);
return
(
NULL
);
}
}
...
@@ -2418,7 +2418,7 @@ os_aio_posix_handle(
...
@@ -2418,7 +2418,7 @@ os_aio_posix_handle(
if
(
sig
!=
SIGRTMIN
+
1
+
array_no
)
{
if
(
sig
!=
SIGRTMIN
+
1
+
array_no
)
{
ut_
a
(
0
)
;
ut_
error
;
return
(
FALSE
);
return
(
FALSE
);
}
}
...
@@ -2682,7 +2682,7 @@ os_aio_simulated_handle(
...
@@ -2682,7 +2682,7 @@ os_aio_simulated_handle(
"InnoDB: Error: trying a displaced write to %s %lu %lu, len %lu
\n
"
,
"InnoDB: Error: trying a displaced write to %s %lu %lu, len %lu
\n
"
,
slot
->
name
,
slot
->
offset_high
,
slot
->
name
,
slot
->
offset_high
,
slot
->
offset
,
total_len
);
slot
->
offset
,
total_len
);
ut_
a
(
0
)
;
ut_
error
;
}
}
/* Do a 'last millisecond' check that the page end
/* Do a 'last millisecond' check that the page end
...
...
innobase/page/page0cur.c
View file @
9ed26f72
...
@@ -713,7 +713,7 @@ page_cur_parse_insert_rec(
...
@@ -713,7 +713,7 @@ page_cur_parse_insert_rec(
buf_page_print
(
page
);
buf_page_print
(
page
);
ut_
a
(
0
)
;
ut_
error
;
}
}
ut_memcpy
(
buf
,
rec_get_start
(
cursor_rec
),
mismatch_index
);
ut_memcpy
(
buf
,
rec_get_start
(
cursor_rec
),
mismatch_index
);
...
...
innobase/page/page0page.c
View file @
9ed26f72
...
@@ -110,7 +110,7 @@ page_dir_find_owner_slot(
...
@@ -110,7 +110,7 @@ page_dir_find_owner_slot(
buf_page_print
(
page
);
buf_page_print
(
page
);
ut_
a
(
0
)
;
ut_
error
;
}
}
i
--
;
i
--
;
...
@@ -441,7 +441,7 @@ page_copy_rec_list_end_no_locks(
...
@@ -441,7 +441,7 @@ page_copy_rec_list_end_no_locks(
(
ulint
)(
rec
-
page
),
(
ulint
)(
rec
-
page
),
(
ulint
)(
page_cur_get_rec
(
&
cur1
)
-
page
),
(
ulint
)(
page_cur_get_rec
(
&
cur1
)
-
page
),
(
ulint
)(
page_cur_get_rec
(
&
cur2
)
-
new_page
));
(
ulint
)(
page_cur_get_rec
(
&
cur2
)
-
new_page
));
ut_
a
(
0
)
;
ut_
error
;
}
}
page_cur_move_to_next
(
&
cur1
);
page_cur_move_to_next
(
&
cur1
);
...
...
innobase/pars/lexyy.c
View file @
9ed26f72
...
@@ -627,7 +627,7 @@ Linux.
...
@@ -627,7 +627,7 @@ Linux.
#define malloc(A) mem_alloc(A)
#define malloc(A) mem_alloc(A)
#define free(A) mem_free(A)
#define free(A) mem_free(A)
#define realloc(P, A) mem_realloc(P, A, __FILE__, __LINE__)
#define realloc(P, A) mem_realloc(P, A, __FILE__, __LINE__)
#define exit(A) ut_
a(0)
#define exit(A) ut_
error
#define YY_INPUT(buf, result, max_size) pars_get_lex_chars(buf, &result, max_size)
#define YY_INPUT(buf, result, max_size) pars_get_lex_chars(buf, &result, max_size)
#define comment 1
#define comment 1
...
...
innobase/que/que0que.c
View file @
9ed26f72
...
@@ -485,7 +485,7 @@ que_graph_free_recursive(
...
@@ -485,7 +485,7 @@ que_graph_free_recursive(
"que_thr struct appears corrupt; magic n %lu
\n
"
,
"que_thr struct appears corrupt; magic n %lu
\n
"
,
thr
->
magic_n
);
thr
->
magic_n
);
mem_analyze_corruption
((
byte
*
)
thr
);
mem_analyze_corruption
((
byte
*
)
thr
);
ut_
a
(
0
)
;
ut_
error
;
}
}
thr
->
magic_n
=
QUE_THR_MAGIC_FREED
;
thr
->
magic_n
=
QUE_THR_MAGIC_FREED
;
...
@@ -597,7 +597,7 @@ que_graph_free_recursive(
...
@@ -597,7 +597,7 @@ que_graph_free_recursive(
"que_node struct appears corrupt; type %lu
\n
"
,
"que_node struct appears corrupt; type %lu
\n
"
,
que_node_get_type
(
node
));
que_node_get_type
(
node
));
mem_analyze_corruption
((
byte
*
)
node
);
mem_analyze_corruption
((
byte
*
)
node
);
ut_
a
(
0
)
;
ut_
error
;
}
}
}
}
...
@@ -987,7 +987,7 @@ que_thr_move_to_run_state_for_mysql(
...
@@ -987,7 +987,7 @@ que_thr_move_to_run_state_for_mysql(
mem_analyze_corruption
((
byte
*
)
thr
);
mem_analyze_corruption
((
byte
*
)
thr
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
!
thr
->
is_active
)
{
if
(
!
thr
->
is_active
)
{
...
@@ -1023,7 +1023,7 @@ que_thr_stop_for_mysql_no_error(
...
@@ -1023,7 +1023,7 @@ que_thr_stop_for_mysql_no_error(
mem_analyze_corruption
((
byte
*
)
thr
);
mem_analyze_corruption
((
byte
*
)
thr
);
ut_
a
(
0
)
;
ut_
error
;
}
}
thr
->
state
=
QUE_THR_COMPLETED
;
thr
->
state
=
QUE_THR_COMPLETED
;
...
...
innobase/rem/rem0cmp.c
View file @
9ed26f72
...
@@ -273,7 +273,7 @@ cmp_whole_field(
...
@@ -273,7 +273,7 @@ cmp_whole_field(
default:
default:
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: unknown type number %lu
\n
"
,
data_type
);
"InnoDB: unknown type number %lu
\n
"
,
data_type
);
ut_
a
(
0
)
;
ut_
error
;
}
}
return
(
0
);
return
(
0
);
...
...
innobase/rem/rem0rec.c
View file @
9ed26f72
...
@@ -108,12 +108,12 @@ rec_get_nth_field(
...
@@ -108,12 +108,12 @@ rec_get_nth_field(
if
(
n
>
1024
)
{
if
(
n
>
1024
)
{
fprintf
(
stderr
,
"Error: trying to access field %lu in rec
\n
"
,
fprintf
(
stderr
,
"Error: trying to access field %lu in rec
\n
"
,
n
);
n
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
rec
==
NULL
)
{
if
(
rec
==
NULL
)
{
fprintf
(
stderr
,
"Error: rec is NULL pointer
\n
"
);
fprintf
(
stderr
,
"Error: rec is NULL pointer
\n
"
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
rec_get_1byte_offs_flag
(
rec
))
{
if
(
rec_get_1byte_offs_flag
(
rec
))
{
...
...
innobase/row/row0ins.c
View file @
9ed26f72
...
@@ -856,7 +856,7 @@ row_ins_foreign_check_on_constraint(
...
@@ -856,7 +856,7 @@ row_ins_foreign_check_on_constraint(
"InnoDB: Make a detailed bug report and send it\n");
"InnoDB: Make a detailed bug report and send it\n");
fprintf(stderr, "InnoDB: to mysql@lists.mysql.com\n");
fprintf(stderr, "InnoDB: to mysql@lists.mysql.com\n");
ut_
a(0)
;
ut_
error
;
*/
*/
err
=
DB_SUCCESS
;
err
=
DB_SUCCESS
;
...
...
innobase/row/row0mysql.c
View file @
9ed26f72
...
@@ -270,7 +270,7 @@ row_mysql_handle_errors(
...
@@ -270,7 +270,7 @@ row_mysql_handle_errors(
}
else
{
}
else
{
fprintf
(
stderr
,
"InnoDB: unknown error code %lu
\n
"
,
err
);
fprintf
(
stderr
,
"InnoDB: unknown error code %lu
\n
"
,
err
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
trx
->
error_state
!=
DB_SUCCESS
)
{
if
(
trx
->
error_state
!=
DB_SUCCESS
)
{
...
@@ -383,7 +383,7 @@ row_prebuilt_free(
...
@@ -383,7 +383,7 @@ row_prebuilt_free(
mem_analyze_corruption
((
byte
*
)
prebuilt
);
mem_analyze_corruption
((
byte
*
)
prebuilt
);
ut_
a
(
0
)
;
ut_
error
;
}
}
prebuilt
->
magic_n
=
ROW_PREBUILT_FREED
;
prebuilt
->
magic_n
=
ROW_PREBUILT_FREED
;
...
@@ -431,7 +431,7 @@ row_prebuilt_free(
...
@@ -431,7 +431,7 @@ row_prebuilt_free(
mem_analyze_corruption
(
mem_analyze_corruption
(
prebuilt
->
fetch_cache
[
i
]);
prebuilt
->
fetch_cache
[
i
]);
ut_
a
(
0
)
;
ut_
error
;
}
}
mem_free
((
prebuilt
->
fetch_cache
[
i
])
-
4
);
mem_free
((
prebuilt
->
fetch_cache
[
i
])
-
4
);
...
@@ -463,7 +463,7 @@ row_update_prebuilt_trx(
...
@@ -463,7 +463,7 @@ row_update_prebuilt_trx(
mem_analyze_corruption
((
byte
*
)
trx
);
mem_analyze_corruption
((
byte
*
)
trx
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
prebuilt
->
magic_n
!=
ROW_PREBUILT_ALLOCATED
)
{
if
(
prebuilt
->
magic_n
!=
ROW_PREBUILT_ALLOCATED
)
{
...
@@ -474,7 +474,7 @@ row_update_prebuilt_trx(
...
@@ -474,7 +474,7 @@ row_update_prebuilt_trx(
mem_analyze_corruption
((
byte
*
)
prebuilt
);
mem_analyze_corruption
((
byte
*
)
prebuilt
);
ut_
a
(
0
)
;
ut_
error
;
}
}
prebuilt
->
trx
=
trx
;
prebuilt
->
trx
=
trx
;
...
@@ -701,7 +701,7 @@ row_insert_for_mysql(
...
@@ -701,7 +701,7 @@ row_insert_for_mysql(
mem_analyze_corruption
((
byte
*
)
prebuilt
);
mem_analyze_corruption
((
byte
*
)
prebuilt
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
srv_created_new_raw
||
srv_force_recovery
)
{
if
(
srv_created_new_raw
||
srv_force_recovery
)
{
...
@@ -917,7 +917,7 @@ row_update_for_mysql(
...
@@ -917,7 +917,7 @@ row_update_for_mysql(
mem_analyze_corruption
((
byte
*
)
prebuilt
);
mem_analyze_corruption
((
byte
*
)
prebuilt
);
ut_
a
(
0
)
;
ut_
error
;
}
}
if
(
srv_created_new_raw
||
srv_force_recovery
)
{
if
(
srv_created_new_raw
||
srv_force_recovery
)
{
...
@@ -2091,7 +2091,7 @@ row_drop_table_for_mysql(
...
@@ -2091,7 +2091,7 @@ row_drop_table_for_mysql(
row_mysql_handle_errors
(
&
err
,
trx
,
thr
,
NULL
);
row_mysql_handle_errors
(
&
err
,
trx
,
thr
,
NULL
);
ut_
a
(
0
)
;
ut_
error
;
}
else
{
}
else
{
dict_table_remove_from_cache
(
table
);
dict_table_remove_from_cache
(
table
);
...
...
innobase/row/row0purge.c
View file @
9ed26f72
...
@@ -140,7 +140,7 @@ row_purge_remove_clust_if_poss_low(
...
@@ -140,7 +140,7 @@ row_purge_remove_clust_if_poss_low(
}
else
if
(
err
==
DB_OUT_OF_FILE_SPACE
)
{
}
else
if
(
err
==
DB_OUT_OF_FILE_SPACE
)
{
success
=
FALSE
;
success
=
FALSE
;
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
}
}
}
}
...
@@ -266,7 +266,7 @@ row_purge_remove_sec_if_poss_low(
...
@@ -266,7 +266,7 @@ row_purge_remove_sec_if_poss_low(
}
else
if
(
err
==
DB_OUT_OF_FILE_SPACE
)
{
}
else
if
(
err
==
DB_OUT_OF_FILE_SPACE
)
{
success
=
FALSE
;
success
=
FALSE
;
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
}
}
}
}
}
}
...
...
innobase/row/row0row.c
View file @
9ed26f72
...
@@ -406,7 +406,7 @@ row_build_row_ref_in_tuple(
...
@@ -406,7 +406,7 @@ row_build_row_ref_in_tuple(
if
(
!
table
)
{
if
(
!
table
)
{
fprintf
(
stderr
,
"InnoDB: table %s for index %s not found
\n
"
,
fprintf
(
stderr
,
"InnoDB: table %s for index %s not found
\n
"
,
index
->
table_name
,
index
->
name
);
index
->
table_name
,
index
->
name
);
ut_
a
(
0
)
;
ut_
error
;
}
}
clust_index
=
dict_table_get_first_index
(
table
);
clust_index
=
dict_table_get_first_index
(
table
);
...
@@ -415,7 +415,7 @@ row_build_row_ref_in_tuple(
...
@@ -415,7 +415,7 @@ row_build_row_ref_in_tuple(
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: clust index for table %s for index %s not found
\n
"
,
"InnoDB: clust index for table %s for index %s not found
\n
"
,
index
->
table_name
,
index
->
name
);
index
->
table_name
,
index
->
name
);
ut_
a
(
0
)
;
ut_
error
;
}
}
ref_len
=
dict_index_get_n_unique
(
clust_index
);
ref_len
=
dict_index_get_n_unique
(
clust_index
);
...
...
innobase/row/row0sel.c
View file @
9ed26f72
...
@@ -2072,7 +2072,7 @@ row_sel_store_row_id_to_prebuilt(
...
@@ -2072,7 +2072,7 @@ row_sel_store_row_id_to_prebuilt(
len
,
index
->
table_name
,
index
->
name
,
len
,
index
->
table_name
,
index
->
name
,
dict_index_get_sys_col_pos
(
index
,
DATA_ROW_ID
),
dict_index_get_sys_col_pos
(
index
,
DATA_ROW_ID
),
err_buf
);
err_buf
);
ut_
a
(
0
)
;
ut_
error
;
}
}
ut_memcpy
(
prebuilt
->
row_id
,
data
,
len
);
ut_memcpy
(
prebuilt
->
row_id
,
data
,
len
);
...
@@ -2716,7 +2716,7 @@ row_search_for_mysql(
...
@@ -2716,7 +2716,7 @@ row_search_for_mysql(
mem_analyze_corruption
((
byte
*
)
prebuilt
);
mem_analyze_corruption
((
byte
*
)
prebuilt
);
ut_
a
(
0
)
;
ut_
error
;
}
}
/* printf("Match mode %lu\n search tuple ", match_mode);
/* printf("Match mode %lu\n search tuple ", match_mode);
...
@@ -2765,7 +2765,7 @@ row_search_for_mysql(
...
@@ -2765,7 +2765,7 @@ row_search_for_mysql(
if
(
direction
!=
prebuilt
->
fetch_direction
)
{
if
(
direction
!=
prebuilt
->
fetch_direction
)
{
if
(
prebuilt
->
n_fetch_cached
>
0
)
{
if
(
prebuilt
->
n_fetch_cached
>
0
)
{
ut_
a
(
0
)
;
ut_
error
;
/* TODO: scrollable cursor: restore cursor to
/* TODO: scrollable cursor: restore cursor to
the place of the latest returned row,
the place of the latest returned row,
or better: prevent caching for a scroll
or better: prevent caching for a scroll
...
...
innobase/row/row0undo.c
View file @
9ed26f72
...
@@ -333,7 +333,7 @@ row_undo_step(
...
@@ -333,7 +333,7 @@ row_undo_step(
exit
(
1
);
exit
(
1
);
}
}
ut_
a
(
0
)
;
ut_
error
;
return
(
NULL
);
return
(
NULL
);
}
}
...
...
innobase/srv/srv0srv.c
View file @
9ed26f72
...
@@ -1184,7 +1184,7 @@ srv_table_reserve_slot_for_mysql(void)
...
@@ -1184,7 +1184,7 @@ srv_table_reserve_slot_for_mysql(void)
(
ulint
)
difftime
(
ut_time
(),
slot
->
suspend_time
));
(
ulint
)
difftime
(
ut_time
(),
slot
->
suspend_time
));
}
}
ut_
a
(
0
)
;
ut_
error
;
}
}
slot
=
srv_mysql_table
+
i
;
slot
=
srv_mysql_table
+
i
;
...
...
innobase/sync/sync0arr.c
View file @
9ed26f72
...
@@ -940,7 +940,7 @@ sync_array_print_long_waits(void)
...
@@ -940,7 +940,7 @@ sync_array_print_long_waits(void)
"InnoDB: We intentionally crash the server, because it appears to be hung.
\n
"
"InnoDB: We intentionally crash the server, because it appears to be hung.
\n
"
);
);
ut_
a
(
0
)
;
ut_
error
;
}
}
}
}
...
...
innobase/trx/trx0purge.c
View file @
9ed26f72
...
@@ -278,7 +278,7 @@ trx_purge_add_update_undo_to_history(
...
@@ -278,7 +278,7 @@ trx_purge_add_update_undo_to_history(
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
ut_
a
(
0
)
;
ut_
error
;
}
}
trx_rsegf_set_nth_undo
(
rseg_header
,
undo
->
id
,
FIL_NULL
,
mtr
);
trx_rsegf_set_nth_undo
(
rseg_header
,
undo
->
id
,
FIL_NULL
,
mtr
);
...
@@ -1016,7 +1016,7 @@ trx_purge(void)
...
@@ -1016,7 +1016,7 @@ trx_purge(void)
/* Should not happen */
/* Should not happen */
ut_
a
(
0
)
;
ut_
error
;
return
(
0
);
return
(
0
);
}
}
...
...
innobase/trx/trx0trx.c
View file @
9ed26f72
...
@@ -816,7 +816,7 @@ trx_commit_off_kernel(
...
@@ -816,7 +816,7 @@ trx_commit_off_kernel(
log_write_up_to
(
lsn
,
LOG_WAIT_ONE_GROUP
,
FALSE
);
log_write_up_to
(
lsn
,
LOG_WAIT_ONE_GROUP
,
FALSE
);
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
}
}
trx
->
commit_lsn
=
lsn
;
trx
->
commit_lsn
=
lsn
;
...
@@ -1141,7 +1141,7 @@ trx_sig_send(
...
@@ -1141,7 +1141,7 @@ trx_sig_send(
/* The signal is not compatible with the other signals in
/* The signal is not compatible with the other signals in
the queue: do nothing */
the queue: do nothing */
ut_
a
(
0
)
;
ut_
error
;
return
(
FALSE
);
return
(
FALSE
);
}
}
...
@@ -1189,7 +1189,7 @@ trx_sig_send(
...
@@ -1189,7 +1189,7 @@ trx_sig_send(
signal to the end of the queue, if the session is not yet
signal to the end of the queue, if the session is not yet
in the error state: */
in the error state: */
ut_
a
(
0
)
;
ut_
error
;
}
}
/* If there were no other signals ahead in the queue, try to start
/* If there were no other signals ahead in the queue, try to start
...
@@ -1534,7 +1534,7 @@ trx_commit_complete_for_mysql(
...
@@ -1534,7 +1534,7 @@ trx_commit_complete_for_mysql(
log_write_up_to
(
lsn
,
LOG_WAIT_ONE_GROUP
,
FALSE
);
log_write_up_to
(
lsn
,
LOG_WAIT_ONE_GROUP
,
FALSE
);
}
else
{
}
else
{
ut_
a
(
0
)
;
ut_
error
;
}
}
trx
->
op_info
=
(
char
*
)
""
;
trx
->
op_info
=
(
char
*
)
""
;
...
...
innobase/trx/trx0undo.c
View file @
9ed26f72
...
@@ -1128,7 +1128,7 @@ trx_undo_mem_create_at_db_start(
...
@@ -1128,7 +1128,7 @@ trx_undo_mem_create_at_db_start(
if
(
id
>=
TRX_RSEG_N_SLOTS
)
{
if
(
id
>=
TRX_RSEG_N_SLOTS
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
id
);
"InnoDB: Error: undo->id is %lu
\n
"
,
id
);
ut_
a
(
0
)
;
ut_
error
;
}
}
undo_page
=
trx_undo_page_get
(
rseg
->
space
,
page_no
,
mtr
);
undo_page
=
trx_undo_page_get
(
rseg
->
space
,
page_no
,
mtr
);
...
@@ -1286,7 +1286,7 @@ trx_undo_mem_create(
...
@@ -1286,7 +1286,7 @@ trx_undo_mem_create(
if
(
id
>=
TRX_RSEG_N_SLOTS
)
{
if
(
id
>=
TRX_RSEG_N_SLOTS
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
id
);
"InnoDB: Error: undo->id is %lu
\n
"
,
id
);
ut_
a
(
0
)
;
ut_
error
;
}
}
undo
=
mem_alloc
(
sizeof
(
trx_undo_t
));
undo
=
mem_alloc
(
sizeof
(
trx_undo_t
));
...
@@ -1333,7 +1333,7 @@ trx_undo_mem_init_for_reuse(
...
@@ -1333,7 +1333,7 @@ trx_undo_mem_init_for_reuse(
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
mem_analyze_corruption
((
byte
*
)
undo
);
mem_analyze_corruption
((
byte
*
)
undo
);
ut_
a
(
0
)
;
ut_
error
;
}
}
undo
->
state
=
TRX_UNDO_ACTIVE
;
undo
->
state
=
TRX_UNDO_ACTIVE
;
...
@@ -1357,7 +1357,7 @@ trx_undo_mem_free(
...
@@ -1357,7 +1357,7 @@ trx_undo_mem_free(
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
fprintf
(
stderr
,
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
ut_
a
(
0
)
;
ut_
error
;
}
}
mem_free
(
undo
);
mem_free
(
undo
);
...
@@ -1468,7 +1468,7 @@ trx_undo_reuse_cached(
...
@@ -1468,7 +1468,7 @@ trx_undo_reuse_cached(
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
mem_analyze_corruption
((
byte
*
)
undo
);
mem_analyze_corruption
((
byte
*
)
undo
);
ut_
a
(
0
)
;
ut_
error
;
}
}
undo_page
=
trx_undo_page_get
(
undo
->
space
,
undo
->
hdr_page_no
,
mtr
);
undo_page
=
trx_undo_page_get
(
undo
->
space
,
undo
->
hdr_page_no
,
mtr
);
...
@@ -1604,7 +1604,7 @@ trx_undo_set_state_at_finish(
...
@@ -1604,7 +1604,7 @@ trx_undo_set_state_at_finish(
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
if
(
undo
->
id
>=
TRX_RSEG_N_SLOTS
)
{
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
fprintf
(
stderr
,
"InnoDB: Error: undo->id is %lu
\n
"
,
undo
->
id
);
mem_analyze_corruption
((
byte
*
)
undo
);
mem_analyze_corruption
((
byte
*
)
undo
);
ut_
a
(
0
)
;
ut_
error
;
}
}
undo_page
=
trx_undo_page_get
(
undo
->
space
,
undo
->
hdr_page_no
,
mtr
);
undo_page
=
trx_undo_page_get
(
undo
->
space
,
undo
->
hdr_page_no
,
mtr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment