Commit 917941e4 authored by marko's avatar marko

Split lines before an opening parenthesis, not after one.

Replace some printf(...) in debug builds with fprintf(stderr, ...).
parent 8f18616e
...@@ -786,8 +786,8 @@ btr_free_but_not_root( ...@@ -786,8 +786,8 @@ btr_free_but_not_root(
/* NOTE: page hash indexes are dropped when a page is freed inside /* NOTE: page hash indexes are dropped when a page is freed inside
fsp0fsp. */ fsp0fsp. */
finished = fseg_free_step( finished = fseg_free_step
root + PAGE_HEADER + PAGE_BTR_SEG_LEAF, &mtr); (root + PAGE_HEADER + PAGE_BTR_SEG_LEAF, &mtr);
mtr_commit(&mtr); mtr_commit(&mtr);
if (!finished) { if (!finished) {
...@@ -799,8 +799,8 @@ btr_free_but_not_root( ...@@ -799,8 +799,8 @@ btr_free_but_not_root(
root = btr_page_get(space, root_page_no, RW_X_LATCH, &mtr); root = btr_page_get(space, root_page_no, RW_X_LATCH, &mtr);
finished = fseg_free_step_not_header( finished = fseg_free_step_not_header
root + PAGE_HEADER + PAGE_BTR_SEG_TOP, &mtr); (root + PAGE_HEADER + PAGE_BTR_SEG_TOP, &mtr);
mtr_commit(&mtr); mtr_commit(&mtr);
if (!finished) { if (!finished) {
...@@ -827,8 +827,8 @@ btr_free_root( ...@@ -827,8 +827,8 @@ btr_free_root(
btr_search_drop_page_hash_index(root); btr_search_drop_page_hash_index(root);
top_loop: top_loop:
finished = fseg_free_step( finished = fseg_free_step
root + PAGE_HEADER + PAGE_BTR_SEG_TOP, mtr); (root + PAGE_HEADER + PAGE_BTR_SEG_TOP, mtr);
if (!finished) { if (!finished) {
goto top_loop; goto top_loop;
...@@ -1979,8 +1979,8 @@ btr_lift_page_up( ...@@ -1979,8 +1979,8 @@ btr_lift_page_up(
ut_ad(btr_page_get_next(page, mtr) == FIL_NULL); ut_ad(btr_page_get_next(page, mtr) == FIL_NULL);
ut_ad(mtr_memo_contains(mtr, buf_block_align(page), ut_ad(mtr_memo_contains(mtr, buf_block_align(page),
MTR_MEMO_PAGE_X_FIX)); MTR_MEMO_PAGE_X_FIX));
father_page = buf_frame_align( father_page = buf_frame_align
btr_page_get_father_node_ptr(tree, page, mtr)); (btr_page_get_father_node_ptr(tree, page, mtr));
page_level = btr_page_get_level(page, mtr); page_level = btr_page_get_level(page, mtr);
index = tree->tree_index; index = tree->tree_index;
......
...@@ -1933,8 +1933,7 @@ buf_page_io_complete( ...@@ -1933,8 +1933,7 @@ buf_page_io_complete(
"InnoDB: file read of page %lu.\n", "InnoDB: file read of page %lu.\n",
(ulong) block->offset); (ulong) block->offset);
fputs( fputs("InnoDB: You may have to recover"
"InnoDB: You may have to recover"
" from a backup.\n", stderr); " from a backup.\n", stderr);
buf_page_print(block->frame); buf_page_print(block->frame);
...@@ -1944,11 +1943,9 @@ buf_page_io_complete( ...@@ -1944,11 +1943,9 @@ buf_page_io_complete(
" or a failed\n" " or a failed\n"
"InnoDB: file read of page %lu.\n", "InnoDB: file read of page %lu.\n",
(ulong) block->offset); (ulong) block->offset);
fputs( fputs("InnoDB: You may have to recover"
"InnoDB: You may have to recover"
" from a backup.\n", stderr); " from a backup.\n", stderr);
fputs( fputs("InnoDB: It is also possible that"
"InnoDB: It is also possible that"
" your operating\n" " your operating\n"
"InnoDB: system has corrupted its" "InnoDB: system has corrupted its"
" own file cache\n" " own file cache\n"
...@@ -1970,8 +1967,7 @@ buf_page_io_complete( ...@@ -1970,8 +1967,7 @@ buf_page_io_complete(
"InnoDB: about forcing recovery.\n", stderr); "InnoDB: about forcing recovery.\n", stderr);
if (srv_force_recovery < SRV_FORCE_IGNORE_CORRUPT) { if (srv_force_recovery < SRV_FORCE_IGNORE_CORRUPT) {
fputs( fputs("InnoDB: Ending processing because of"
"InnoDB: Ending processing because of"
" a corrupt database page.\n", " a corrupt database page.\n",
stderr); stderr);
exit(1); exit(1);
......
...@@ -55,8 +55,7 @@ buf_flush_insert_into_flush_list( ...@@ -55,8 +55,7 @@ buf_flush_insert_into_flush_list(
ut_a(block->state == BUF_BLOCK_FILE_PAGE); ut_a(block->state == BUF_BLOCK_FILE_PAGE);
ut_ad((UT_LIST_GET_FIRST(buf_pool->flush_list) == NULL) ut_ad((UT_LIST_GET_FIRST(buf_pool->flush_list) == NULL)
|| (ut_dulint_cmp( || (ut_dulint_cmp((UT_LIST_GET_FIRST(buf_pool->flush_list))
(UT_LIST_GET_FIRST(buf_pool->flush_list))
->oldest_modification, ->oldest_modification,
block->oldest_modification) <= 0)); block->oldest_modification) <= 0));
...@@ -513,8 +512,7 @@ buf_flush_write_block_low( ...@@ -513,8 +512,7 @@ buf_flush_write_block_low(
#ifdef UNIV_LOG_DEBUG #ifdef UNIV_LOG_DEBUG
if (!univ_log_debug_warned) { if (!univ_log_debug_warned) {
univ_log_debug_warned = TRUE; univ_log_debug_warned = TRUE;
fputs( fputs("Warning: cannot force log to disk if"
"Warning: cannot force log to disk if"
" UNIV_LOG_DEBUG is defined!\n" " UNIV_LOG_DEBUG is defined!\n"
"Crash recovery will not work!\n", "Crash recovery will not work!\n",
stderr); stderr);
......
...@@ -103,10 +103,10 @@ buf_LRU_invalidate_tablespace( ...@@ -103,10 +103,10 @@ buf_LRU_invalidate_tablespace(
if (block->space == id) { if (block->space == id) {
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
if (buf_debug_prints) { if (buf_debug_prints) {
printf( fprintf(stderr,
"Dropping space %lu page %lu\n", "Dropping space %lu page %lu\n",
(ulong) block->space, (ulong) block->space,
(ulong) block->offset); (ulong) block->offset);
} }
#endif #endif
if (block->is_hashed) { if (block->is_hashed) {
......
...@@ -3632,8 +3632,7 @@ dict_foreign_parse_drop_constraints( ...@@ -3632,8 +3632,7 @@ dict_foreign_parse_drop_constraints(
mutex_enter(&dict_foreign_err_mutex); mutex_enter(&dict_foreign_err_mutex);
rewind(ef); rewind(ef);
ut_print_timestamp(ef); ut_print_timestamp(ef);
fputs( fputs(" Error in dropping of a foreign key constraint"
" Error in dropping of a foreign key constraint"
" of table ", ef); " of table ", ef);
ut_print_name(ef, NULL, TRUE, table->name); ut_print_name(ef, NULL, TRUE, table->name);
fputs(",\n" fputs(",\n"
......
...@@ -1982,8 +1982,7 @@ fil_delete_tablespace( ...@@ -1982,8 +1982,7 @@ fil_delete_tablespace(
} else { } else {
if (count > 5000) { if (count > 5000) {
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Warning: trying to"
" InnoDB: Warning: trying to"
" delete tablespace ", stderr); " delete tablespace ", stderr);
ut_print_filename(stderr, space->name); ut_print_filename(stderr, space->name);
fprintf(stderr, ",\n" fprintf(stderr, ",\n"
...@@ -2419,8 +2418,7 @@ fil_create_new_single_table_tablespace( ...@@ -2419,8 +2418,7 @@ fil_create_new_single_table_tablespace(
err = os_file_get_last_error(TRUE); err = os_file_get_last_error(TRUE);
if (err == OS_FILE_ALREADY_EXISTS) { if (err == OS_FILE_ALREADY_EXISTS) {
fputs( fputs("InnoDB: The file already exists though"
"InnoDB: The file already exists though"
" the corresponding table did not\n" " the corresponding table did not\n"
"InnoDB: exist in the InnoDB data dictionary." "InnoDB: exist in the InnoDB data dictionary."
" Have you moved InnoDB\n" " Have you moved InnoDB\n"
...@@ -2503,8 +2501,7 @@ fil_create_new_single_table_tablespace( ...@@ -2503,8 +2501,7 @@ fil_create_new_single_table_tablespace(
ut_free(buf2); ut_free(buf2);
if (!ret) { if (!ret) {
fputs( fputs("InnoDB: Error: could not write the first page"
"InnoDB: Error: could not write the first page"
" to tablespace ", stderr); " to tablespace ", stderr);
ut_print_filename(stderr, path); ut_print_filename(stderr, path);
putc('\n', stderr); putc('\n', stderr);
...@@ -2514,8 +2511,7 @@ fil_create_new_single_table_tablespace( ...@@ -2514,8 +2511,7 @@ fil_create_new_single_table_tablespace(
ret = os_file_flush(file); ret = os_file_flush(file);
if (!ret) { if (!ret) {
fputs( fputs("InnoDB: Error: file flush of tablespace ", stderr);
"InnoDB: Error: file flush of tablespace ", stderr);
ut_print_filename(stderr, path); ut_print_filename(stderr, path);
fputs(" failed\n", stderr); fputs(" failed\n", stderr);
goto error_exit; goto error_exit;
...@@ -2592,8 +2588,7 @@ fil_reset_too_high_lsns( ...@@ -2592,8 +2588,7 @@ fil_reset_too_high_lsns(
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error: trying to open a table,"
" InnoDB: Error: trying to open a table,"
" but could not\n" " but could not\n"
"InnoDB: open the tablespace file ", stderr); "InnoDB: open the tablespace file ", stderr);
ut_print_filename(stderr, filepath); ut_print_filename(stderr, filepath);
...@@ -2748,8 +2743,7 @@ fil_open_single_table_tablespace( ...@@ -2748,8 +2743,7 @@ fil_open_single_table_tablespace(
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error: trying to open a table,"
" InnoDB: Error: trying to open a table,"
" but could not\n" " but could not\n"
"InnoDB: open the tablespace file ", stderr); "InnoDB: open the tablespace file ", stderr);
ut_print_filename(stderr, filepath); ut_print_filename(stderr, filepath);
...@@ -2794,8 +2788,7 @@ fil_open_single_table_tablespace( ...@@ -2794,8 +2788,7 @@ fil_open_single_table_tablespace(
if (space_id != id) { if (space_id != id) {
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error: tablespace id in file ", stderr);
" InnoDB: Error: tablespace id in file ", stderr);
ut_print_filename(stderr, filepath); ut_print_filename(stderr, filepath);
fprintf(stderr, " is %lu, but in the InnoDB\n" fprintf(stderr, " is %lu, but in the InnoDB\n"
"InnoDB: data dictionary it is %lu.\n" "InnoDB: data dictionary it is %lu.\n"
...@@ -3259,8 +3252,7 @@ fil_load_single_table_tablespaces(void) ...@@ -3259,8 +3252,7 @@ fil_load_single_table_tablespaces(void)
} }
if (0 != os_file_closedir(dbdir)) { if (0 != os_file_closedir(dbdir)) {
fputs( fputs("InnoDB: Warning: could not"
"InnoDB: Warning: could not"
" close database directory ", stderr); " close database directory ", stderr);
ut_print_filename(stderr, dbpath); ut_print_filename(stderr, dbpath);
putc('\n', stderr); putc('\n', stderr);
...@@ -3495,8 +3487,7 @@ fil_space_for_table_exists_in_mem( ...@@ -3495,8 +3487,7 @@ fil_space_for_table_exists_in_mem(
(ulong) namespace->id); (ulong) namespace->id);
} }
error_exit: error_exit:
fputs( fputs("InnoDB: Please refer to\n"
"InnoDB: Please refer to\n"
"InnoDB: http://dev.mysql.com/doc/refman/5.1/en/" "InnoDB: http://dev.mysql.com/doc/refman/5.1/en/"
"innodb-troubleshooting.html\n" "innodb-troubleshooting.html\n"
"InnoDB: for how to resolve the issue.\n", stderr); "InnoDB: for how to resolve the issue.\n", stderr);
......
...@@ -364,8 +364,7 @@ xdes_get_bit( ...@@ -364,8 +364,7 @@ xdes_get_bit(
byte_index = index / 8; byte_index = index / 8;
bit_index = index % 8; bit_index = index % 8;
return(ut_bit_get_nth( return(ut_bit_get_nth(mtr_read_ulint(descr + XDES_BITMAP + byte_index,
mtr_read_ulint(descr + XDES_BITMAP + byte_index,
MLOG_1BYTE, mtr), MLOG_1BYTE, mtr),
bit_index)); bit_index));
} }
...@@ -3008,8 +3007,7 @@ fseg_free_page_low( ...@@ -3008,8 +3007,7 @@ fseg_free_page_low(
" InnoDB tables and recreate the whole\n" " InnoDB tables and recreate the whole\n"
"InnoDB: database!\n", (ulong) page); "InnoDB: database!\n", (ulong) page);
crash: crash:
fputs( fputs("InnoDB: Please refer to\n"
"InnoDB: Please refer to\n"
"InnoDB: http://dev.mysql.com/doc/refman/5.1/en/" "InnoDB: http://dev.mysql.com/doc/refman/5.1/en/"
"forcing-recovery.html\n" "forcing-recovery.html\n"
"InnoDB: about forcing recovery.\n", stderr); "InnoDB: about forcing recovery.\n", stderr);
...@@ -3152,8 +3150,7 @@ fseg_free_extent( ...@@ -3152,8 +3150,7 @@ fseg_free_extent(
descr = xdes_get_descriptor(space, page, mtr); descr = xdes_get_descriptor(space, page, mtr);
ut_a(xdes_get_state(descr, mtr) == XDES_FSEG); ut_a(xdes_get_state(descr, mtr) == XDES_FSEG);
ut_a(0 == ut_dulint_cmp( ut_a(0 == ut_dulint_cmp(mtr_read_dulint(descr + XDES_ID, mtr),
mtr_read_dulint(descr + XDES_ID, mtr),
mtr_read_dulint(seg_inode + FSEG_ID, mtr))); mtr_read_dulint(seg_inode + FSEG_ID, mtr)));
first_page_in_extent = page - (page % FSP_EXTENT_SIZE); first_page_in_extent = page - (page % FSP_EXTENT_SIZE);
......
...@@ -2710,10 +2710,10 @@ ibuf_insert_low( ...@@ -2710,10 +2710,10 @@ ibuf_insert_low(
function_exit: function_exit:
#ifdef UNIV_IBUF_DEBUG #ifdef UNIV_IBUF_DEBUG
if (err == DB_SUCCESS) { if (err == DB_SUCCESS) {
printf( fprintf(stderr,
"Incrementing ibuf count of space %lu page %lu\n" "Incrementing ibuf count of space %lu page %lu\n"
"from %lu by 1\n", space, page_no, "from %lu by 1\n", space, page_no,
ibuf_count_get(space, page_no)); ibuf_count_get(space, page_no));
ibuf_count_set(space, page_no, ibuf_count_set(space, page_no,
ibuf_count_get(space, page_no) + 1); ibuf_count_get(space, page_no) + 1);
...@@ -2840,8 +2840,7 @@ ibuf_insert_to_index_page( ...@@ -2840,8 +2840,7 @@ ibuf_insert_to_index_page(
if (UNIV_UNLIKELY(rec_get_n_fields(rec, index) if (UNIV_UNLIKELY(rec_get_n_fields(rec, index)
!= dtuple_get_n_fields(entry))) { != dtuple_get_n_fields(entry))) {
fputs( fputs("InnoDB: Trying to insert a record from"
"InnoDB: Trying to insert a record from"
" the insert buffer to an index page\n" " the insert buffer to an index page\n"
"InnoDB: but the number of fields does not match!\n", "InnoDB: but the number of fields does not match!\n",
stderr); stderr);
......
...@@ -291,8 +291,7 @@ page_rec_is_user_rec( ...@@ -291,8 +291,7 @@ page_rec_is_user_rec(
/* out: TRUE if a user record */ /* out: TRUE if a user record */
const rec_t* rec) /* in: record */ const rec_t* rec) /* in: record */
{ {
return(page_rec_is_user_rec_low( return(page_rec_is_user_rec_low(ut_align_offset(rec, UNIV_PAGE_SIZE)));
ut_align_offset(rec, UNIV_PAGE_SIZE)));
} }
/**************************************************************** /****************************************************************
...@@ -304,8 +303,7 @@ page_rec_is_supremum( ...@@ -304,8 +303,7 @@ page_rec_is_supremum(
/* out: TRUE if the supremum record */ /* out: TRUE if the supremum record */
const rec_t* rec) /* in: record */ const rec_t* rec) /* in: record */
{ {
return(page_rec_is_supremum_low( return(page_rec_is_supremum_low(ut_align_offset(rec, UNIV_PAGE_SIZE)));
ut_align_offset(rec, UNIV_PAGE_SIZE)));
} }
/**************************************************************** /****************************************************************
...@@ -317,8 +315,7 @@ page_rec_is_infimum( ...@@ -317,8 +315,7 @@ page_rec_is_infimum(
/* out: TRUE if the infimum record */ /* out: TRUE if the infimum record */
const rec_t* rec) /* in: record */ const rec_t* rec) /* in: record */
{ {
return(page_rec_is_infimum_low( return(page_rec_is_infimum_low(ut_align_offset(rec, UNIV_PAGE_SIZE)));
ut_align_offset(rec, UNIV_PAGE_SIZE)));
} }
/***************************************************************** /*****************************************************************
......
...@@ -1860,8 +1860,7 @@ lock_rec_enqueue_waiting( ...@@ -1860,8 +1860,7 @@ lock_rec_enqueue_waiting(
if (trx->dict_operation) { if (trx->dict_operation) {
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error: a record lock wait happens"
" InnoDB: Error: a record lock wait happens"
" in a dictionary operation!\n" " in a dictionary operation!\n"
"InnoDB: Table name ", stderr); "InnoDB: Table name ", stderr);
ut_print_name(stderr, trx, TRUE, index->table_name); ut_print_name(stderr, trx, TRUE, index->table_name);
...@@ -3364,8 +3363,7 @@ lock_deadlock_recursive( ...@@ -3364,8 +3363,7 @@ lock_deadlock_recursive(
trx_print(ef, wait_lock->trx, 3000); trx_print(ef, wait_lock->trx, 3000);
fputs( fputs("*** (1) WAITING FOR THIS LOCK"
"*** (1) WAITING FOR THIS LOCK"
" TO BE GRANTED:\n", ef); " TO BE GRANTED:\n", ef);
if (lock_get_type(wait_lock) == LOCK_REC) { if (lock_get_type(wait_lock) == LOCK_REC) {
...@@ -3386,8 +3384,7 @@ lock_deadlock_recursive( ...@@ -3386,8 +3384,7 @@ lock_deadlock_recursive(
lock_table_print(ef, lock); lock_table_print(ef, lock);
} }
fputs( fputs("*** (2) WAITING FOR THIS LOCK"
"*** (2) WAITING FOR THIS LOCK"
" TO BE GRANTED:\n", ef); " TO BE GRANTED:\n", ef);
if (lock_get_type(start->wait_lock) if (lock_get_type(start->wait_lock)
...@@ -3572,8 +3569,7 @@ lock_table_enqueue_waiting( ...@@ -3572,8 +3569,7 @@ lock_table_enqueue_waiting(
if (trx->dict_operation) { if (trx->dict_operation) {
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error: a table lock wait happens"
" InnoDB: Error: a table lock wait happens"
" in a dictionary operation!\n" " in a dictionary operation!\n"
"InnoDB: Table name ", stderr); "InnoDB: Table name ", stderr);
ut_print_name(stderr, trx, TRUE, table->name); ut_print_name(stderr, trx, TRUE, table->name);
...@@ -4284,16 +4280,14 @@ lock_print_info_summary( ...@@ -4284,16 +4280,14 @@ lock_print_info_summary(
lock_mutex_enter_kernel(); lock_mutex_enter_kernel();
if (lock_deadlock_found) { if (lock_deadlock_found) {
fputs( fputs("------------------------\n"
"------------------------\n"
"LATEST DETECTED DEADLOCK\n" "LATEST DETECTED DEADLOCK\n"
"------------------------\n", file); "------------------------\n", file);
ut_copy_file(file, lock_latest_err_file); ut_copy_file(file, lock_latest_err_file);
} }
fputs( fputs("------------\n"
"------------\n"
"TRANSACTIONS\n" "TRANSACTIONS\n"
"------------\n", file); "------------\n", file);
...@@ -4473,8 +4467,7 @@ lock_print_info_all_transactions( ...@@ -4473,8 +4467,7 @@ lock_print_info_all_transactions(
nth_lock++; nth_lock++;
if (nth_lock >= 10) { if (nth_lock >= 10) {
fputs( fputs("10 LOCKS PRINTED FOR THIS TRX:"
"10 LOCKS PRINTED FOR THIS TRX:"
" SUPPRESSING FURTHER PRINTS\n", " SUPPRESSING FURTHER PRINTS\n",
file); file);
......
...@@ -3131,12 +3131,11 @@ logs_empty_and_mark_files_at_shutdown(void) ...@@ -3131,12 +3131,11 @@ logs_empty_and_mark_files_at_shutdown(void)
mutex_enter(&(log_sys->mutex)); mutex_enter(&(log_sys->mutex));
if ( if (log_sys->n_pending_checkpoint_writes
#ifdef UNIV_LOG_ARCHIVE #ifdef UNIV_LOG_ARCHIVE
log_sys->n_pending_archive_ios || || log_sys->n_pending_archive_ios
#endif /* UNIV_LOG_ARCHIVE */ #endif /* UNIV_LOG_ARCHIVE */
log_sys->n_pending_checkpoint_writes || || log_sys->n_pending_writes) {
log_sys->n_pending_writes) {
mutex_exit(&(log_sys->mutex)); mutex_exit(&(log_sys->mutex));
......
...@@ -1534,8 +1534,7 @@ recv_apply_log_recs_for_backup(void) ...@@ -1534,8 +1534,7 @@ recv_apply_log_recs_for_backup(void)
page = recv_backup_application_page; page = recv_backup_application_page;
fputs( fputs("InnoDB: Starting an apply batch of log records"
"InnoDB: Starting an apply batch of log records"
" to the database...\n" " to the database...\n"
"InnoDB: Progress in percents: ", stderr); "InnoDB: Progress in percents: ", stderr);
...@@ -1786,8 +1785,7 @@ recv_report_corrupt_log( ...@@ -1786,8 +1785,7 @@ recv_report_corrupt_log(
&& (ulint)(ptr - recv_sys->buf + 100 && (ulint)(ptr - recv_sys->buf + 100
- recv_previous_parsed_rec_offset) - recv_previous_parsed_rec_offset)
< 200000) { < 200000) {
fputs( fputs("InnoDB: Hex dump of corrupt log starting"
"InnoDB: Hex dump of corrupt log starting"
" 100 bytes before the start\n" " 100 bytes before the start\n"
"InnoDB: of the previous log rec,\n" "InnoDB: of the previous log rec,\n"
"InnoDB: and ending 100 bytes after the start" "InnoDB: and ending 100 bytes after the start"
...@@ -1802,8 +1800,7 @@ recv_report_corrupt_log( ...@@ -1802,8 +1800,7 @@ recv_report_corrupt_log(
putc('\n', stderr); putc('\n', stderr);
} }
fputs( fputs("InnoDB: WARNING: the log file may have been corrupt and it\n"
"InnoDB: WARNING: the log file may have been corrupt and it\n"
"InnoDB: is possible that the log scan did not proceed\n" "InnoDB: is possible that the log scan did not proceed\n"
"InnoDB: far enough in recovery! Please run CHECK TABLE\n" "InnoDB: far enough in recovery! Please run CHECK TABLE\n"
"InnoDB: on your InnoDB tables to check that they are ok!\n" "InnoDB: on your InnoDB tables to check that they are ok!\n"
......
...@@ -1880,8 +1880,7 @@ page_validate( ...@@ -1880,8 +1880,7 @@ page_validate(
} }
if (page_dir_slot_get_rec(slot) != rec) { if (page_dir_slot_get_rec(slot) != rec) {
fputs( fputs("InnoDB: Dir slot does not"
"InnoDB: Dir slot does not"
" point to right rec\n", " point to right rec\n",
stderr); stderr);
goto func_exit; goto func_exit;
...@@ -1962,8 +1961,7 @@ page_validate( ...@@ -1962,8 +1961,7 @@ page_validate(
for (i = 0; i < rec_offs_size(offsets); i++) { for (i = 0; i < rec_offs_size(offsets); i++) {
if (buf[offs + i] != 0) { if (buf[offs + i] != 0) {
fputs( fputs("InnoDB: Record overlaps another"
"InnoDB: Record overlaps another"
" in free list\n", stderr); " in free list\n", stderr);
goto func_exit; goto func_exit;
} }
......
...@@ -887,11 +887,12 @@ pars_process_assign_list( ...@@ -887,11 +887,12 @@ pars_process_assign_list(
pars_resolve_exp_columns(table_sym, assign_node->col); pars_resolve_exp_columns(table_sym, assign_node->col);
pars_resolve_exp_columns(table_sym, assign_node->val); pars_resolve_exp_columns(table_sym, assign_node->val);
pars_resolve_exp_variables_and_types(NULL, assign_node->val); pars_resolve_exp_variables_and_types(NULL, assign_node->val);
#if 0
/* ut_a(dtype_get_mtype(dfield_get_type( ut_a(dtype_get_mtype
que_node_get_val(assign_node->col))) (dfield_get_type(que_node_get_val(assign_node->col)))
== dtype_get_mtype(dfield_get_type( == dtype_get_mtype
que_node_get_val(assign_node->val)))); */ (dfield_get_type(que_node_get_val(assign_node->val))));
#endif
/* Add to the update node all the columns found in assignment /* Add to the update node all the columns found in assignment
values as columns to copy: therefore, TRUE */ values as columns to copy: therefore, TRUE */
...@@ -1478,8 +1479,7 @@ pars_fetch_statement( ...@@ -1478,8 +1479,7 @@ pars_fetch_statement(
if (into_list) { if (into_list) {
ut_a(que_node_list_get_len(into_list) ut_a(que_node_list_get_len(into_list)
== que_node_list_get_len( == que_node_list_get_len(node->cursor_def->select_list));
node->cursor_def->select_list));
} }
return(node); return(node);
......
...@@ -530,8 +530,7 @@ cmp_dtuple_rec_with_match( ...@@ -530,8 +530,7 @@ cmp_dtuple_rec_with_match(
&& dtype_get_charset_coll(cur_type->prtype) != && dtype_get_charset_coll(cur_type->prtype) !=
DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL)) { DATA_MYSQL_LATIN1_SWEDISH_CHARSET_COLL)) {
ret = cmp_whole_field( ret = cmp_whole_field(cur_type,
cur_type,
dfield_get_data(dtuple_field), dfield_get_data(dtuple_field),
(unsigned) dtuple_f_len, (unsigned) dtuple_f_len,
rec_b_ptr, (unsigned) rec_f_len); rec_b_ptr, (unsigned) rec_f_len);
......
...@@ -933,8 +933,7 @@ row_ins_foreign_check_on_constraint( ...@@ -933,8 +933,7 @@ row_ins_foreign_check_on_constraint(
|| btr_pcur_get_low_match(cascade->pcur) || btr_pcur_get_low_match(cascade->pcur)
< dict_index_get_n_unique(clust_index)) { < dict_index_get_n_unique(clust_index)) {
fputs( fputs("InnoDB: error in cascade of a foreign key op\n"
"InnoDB: error in cascade of a foreign key op\n"
"InnoDB: ", stderr); "InnoDB: ", stderr);
dict_index_name_print(stderr, trx, index); dict_index_name_print(stderr, trx, index);
......
...@@ -514,8 +514,7 @@ row_mysql_handle_errors( ...@@ -514,8 +514,7 @@ row_mysql_handle_errors(
} else if (err == DB_MUST_GET_MORE_FILE_SPACE) { } else if (err == DB_MUST_GET_MORE_FILE_SPACE) {
fputs( fputs("InnoDB: The database cannot continue"
"InnoDB: The database cannot continue"
" operation because of\n" " operation because of\n"
"InnoDB: lack of space. You must add" "InnoDB: lack of space. You must add"
" a new data file to\n" " a new data file to\n"
...@@ -524,8 +523,7 @@ row_mysql_handle_errors( ...@@ -524,8 +523,7 @@ row_mysql_handle_errors(
exit(1); exit(1);
} else if (err == DB_CORRUPTION) { } else if (err == DB_CORRUPTION) {
fputs( fputs("InnoDB: We detected index corruption"
"InnoDB: We detected index corruption"
" in an InnoDB type table.\n" " in an InnoDB type table.\n"
"InnoDB: You have to dump + drop + reimport" "InnoDB: You have to dump + drop + reimport"
" the table or, in\n" " the table or, in\n"
...@@ -714,8 +712,7 @@ row_prebuilt_free( ...@@ -714,8 +712,7 @@ row_prebuilt_free(
|| (ROW_PREBUILT_FETCH_MAGIC_N != || (ROW_PREBUILT_FETCH_MAGIC_N !=
mach_read_from_4((prebuilt->fetch_cache[i]) mach_read_from_4((prebuilt->fetch_cache[i])
+ prebuilt->mysql_row_len))) { + prebuilt->mysql_row_len))) {
fputs( fputs("InnoDB: Error: trying to free"
"InnoDB: Error: trying to free"
" a corrupt fetch buffer.\n", stderr); " a corrupt fetch buffer.\n", stderr);
mem_analyze_corruption mem_analyze_corruption
...@@ -1094,8 +1091,7 @@ row_insert_for_mysql( ...@@ -1094,8 +1091,7 @@ row_insert_for_mysql(
} }
if (srv_created_new_raw || srv_force_recovery) { if (srv_created_new_raw || srv_force_recovery) {
fputs( fputs("InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: innodb_force_recovery is on: we do not allow\n" "InnoDB: innodb_force_recovery is on: we do not allow\n"
"InnoDB: database modifications by the user. Shut down\n" "InnoDB: database modifications by the user. Shut down\n"
"InnoDB: mysqld and edit my.cnf so that" "InnoDB: mysqld and edit my.cnf so that"
...@@ -1333,8 +1329,7 @@ row_update_for_mysql( ...@@ -1333,8 +1329,7 @@ row_update_for_mysql(
} }
if (srv_created_new_raw || srv_force_recovery) { if (srv_created_new_raw || srv_force_recovery) {
fputs( fputs("InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: innodb_force_recovery is on: we do not allow\n" "InnoDB: innodb_force_recovery is on: we do not allow\n"
"InnoDB: database modifications by the user. Shut down\n" "InnoDB: database modifications by the user. Shut down\n"
"InnoDB: mysqld and edit my.cnf so that newraw" "InnoDB: mysqld and edit my.cnf so that newraw"
...@@ -1754,8 +1749,7 @@ row_create_table_for_mysql( ...@@ -1754,8 +1749,7 @@ row_create_table_for_mysql(
ut_ad(trx->dict_operation_lock_mode == RW_X_LATCH); ut_ad(trx->dict_operation_lock_mode == RW_X_LATCH);
if (srv_created_new_raw) { if (srv_created_new_raw) {
fputs( fputs("InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: innodb_force_recovery is on: we do not allow\n" "InnoDB: innodb_force_recovery is on: we do not allow\n"
"InnoDB: database modifications by the user. Shut down\n" "InnoDB: database modifications by the user. Shut down\n"
"InnoDB: mysqld and edit my.cnf so that newraw" "InnoDB: mysqld and edit my.cnf so that newraw"
...@@ -2705,8 +2699,7 @@ row_truncate_table_for_mysql( ...@@ -2705,8 +2699,7 @@ row_truncate_table_for_mysql(
ut_ad(table); ut_ad(table);
if (srv_created_new_raw) { if (srv_created_new_raw) {
fputs( fputs("InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: innodb_force_recovery is on: we do not allow\n" "InnoDB: innodb_force_recovery is on: we do not allow\n"
"InnoDB: database modifications by the user. Shut down\n" "InnoDB: database modifications by the user. Shut down\n"
"InnoDB: mysqld and edit my.cnf so that newraw" "InnoDB: mysqld and edit my.cnf so that newraw"
...@@ -2945,8 +2938,7 @@ row_drop_table_for_mysql( ...@@ -2945,8 +2938,7 @@ row_drop_table_for_mysql(
ut_a(name != NULL); ut_a(name != NULL);
if (srv_created_new_raw) { if (srv_created_new_raw) {
fputs( fputs("InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: innodb_force_recovery is on: we do not allow\n" "InnoDB: innodb_force_recovery is on: we do not allow\n"
"InnoDB: database modifications by the user. Shut down\n" "InnoDB: database modifications by the user. Shut down\n"
"InnoDB: mysqld and edit my.cnf so that newraw" "InnoDB: mysqld and edit my.cnf so that newraw"
...@@ -3361,8 +3353,7 @@ row_drop_database_for_mysql( ...@@ -3361,8 +3353,7 @@ row_drop_database_for_mysql(
row_mysql_unlock_data_dictionary(trx); row_mysql_unlock_data_dictionary(trx);
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Warning: MySQL is trying to"
" InnoDB: Warning: MySQL is trying to"
" drop database ", stderr); " drop database ", stderr);
ut_print_name(stderr, trx, TRUE, name); ut_print_name(stderr, trx, TRUE, name);
fputs("\n" fputs("\n"
...@@ -3497,8 +3488,7 @@ row_rename_table_for_mysql( ...@@ -3497,8 +3488,7 @@ row_rename_table_for_mysql(
ut_a(new_name != NULL); ut_a(new_name != NULL);
if (srv_created_new_raw || srv_force_recovery) { if (srv_created_new_raw || srv_force_recovery) {
fputs( fputs("InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: A new raw disk partition was initialized or\n"
"InnoDB: innodb_force_recovery is on: we do not allow\n" "InnoDB: innodb_force_recovery is on: we do not allow\n"
"InnoDB: database modifications by the user. Shut down\n" "InnoDB: database modifications by the user. Shut down\n"
"InnoDB: mysqld and edit my.cnf so that newraw" "InnoDB: mysqld and edit my.cnf so that newraw"
...@@ -3709,8 +3699,7 @@ row_rename_table_for_mysql( ...@@ -3709,8 +3699,7 @@ row_rename_table_for_mysql(
if (err != DB_SUCCESS) { if (err != DB_SUCCESS) {
if (err == DB_DUPLICATE_KEY) { if (err == DB_DUPLICATE_KEY) {
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error; possible reasons:\n"
" InnoDB: Error; possible reasons:\n"
"InnoDB: 1) Table rename would cause" "InnoDB: 1) Table rename would cause"
" two FOREIGN KEY constraints\n" " two FOREIGN KEY constraints\n"
"InnoDB: to have the same internal name" "InnoDB: to have the same internal name"
...@@ -3729,8 +3718,7 @@ row_rename_table_for_mysql( ...@@ -3729,8 +3718,7 @@ row_rename_table_for_mysql(
"innodb-troubleshooting.html\n" "innodb-troubleshooting.html\n"
"InnoDB: If table ", stderr); "InnoDB: If table ", stderr);
ut_print_name(stderr, trx, TRUE, new_name); ut_print_name(stderr, trx, TRUE, new_name);
fputs( fputs(" is a temporary table #sql..., then"
" is a temporary table #sql..., then"
" it can be that\n" " it can be that\n"
"InnoDB: there are still queries running" "InnoDB: there are still queries running"
" on the table, and it will be\n" " on the table, and it will be\n"
...@@ -3792,8 +3780,7 @@ row_rename_table_for_mysql( ...@@ -3792,8 +3780,7 @@ row_rename_table_for_mysql(
" with the new table definition.\n", " with the new table definition.\n",
stderr); stderr);
} else { } else {
fputs( fputs(" InnoDB: Error: in RENAME TABLE"
" InnoDB: Error: in RENAME TABLE"
" table ", " table ",
stderr); stderr);
ut_print_name(stderr, trx, TRUE, new_name); ut_print_name(stderr, trx, TRUE, new_name);
......
...@@ -2356,8 +2356,7 @@ row_sel_convert_mysql_key_to_innobase( ...@@ -2356,8 +2356,7 @@ row_sel_convert_mysql_key_to_innobase(
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Warning: using a partial-field"
" InnoDB: Warning: using a partial-field"
" key prefix in search.\n" " key prefix in search.\n"
"InnoDB: ", stderr); "InnoDB: ", stderr);
dict_index_name_print(stderr, trx, index); dict_index_name_print(stderr, trx, index);
...@@ -3024,8 +3023,7 @@ row_sel_pop_cached_row_for_mysql( ...@@ -3024,8 +3023,7 @@ row_sel_pop_cached_row_for_mysql(
for (i = 0; i < prebuilt->n_template; i++) { for (i = 0; i < prebuilt->n_template; i++) {
templ = prebuilt->mysql_template + i; templ = prebuilt->mysql_template + i;
ut_memcpy( ut_memcpy(buf + templ->mysql_col_offset,
buf + templ->mysql_col_offset,
cached_rec + templ->mysql_col_offset, cached_rec + templ->mysql_col_offset,
templ->mysql_col_len); templ->mysql_col_len);
/* Copy NULL bit of the current field from cached_rec /* Copy NULL bit of the current field from cached_rec
......
...@@ -992,8 +992,7 @@ srv_conc_enter_innodb( ...@@ -992,8 +992,7 @@ srv_conc_enter_innodb(
retry: retry:
if (trx->declared_to_be_inside_innodb) { if (trx->declared_to_be_inside_innodb) {
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error: trying to declare trx"
" InnoDB: Error: trying to declare trx"
" to enter InnoDB, but\n" " to enter InnoDB, but\n"
"InnoDB: it already is declared.\n", stderr); "InnoDB: it already is declared.\n", stderr);
trx_print(stderr, trx, 0); trx_print(stderr, trx, 0);
......
...@@ -286,8 +286,7 @@ trx_free( ...@@ -286,8 +286,7 @@ trx_free(
if (trx->declared_to_be_inside_innodb) { if (trx->declared_to_be_inside_innodb) {
ut_print_timestamp(stderr); ut_print_timestamp(stderr);
fputs( fputs(" InnoDB: Error: Freeing a trx which is declared"
" InnoDB: Error: Freeing a trx which is declared"
" to be processing\n" " to be processing\n"
"InnoDB: inside InnoDB.\n", stderr); "InnoDB: inside InnoDB.\n", stderr);
trx_print(stderr, trx, 600); trx_print(stderr, trx, 600);
......
...@@ -50,8 +50,7 @@ ut_dbg_assertion_failed( ...@@ -50,8 +50,7 @@ ut_dbg_assertion_failed(
"InnoDB: Failing assertion: %s\n", expr); "InnoDB: Failing assertion: %s\n", expr);
} }
fputs( fputs("InnoDB: We intentionally generate a memory trap.\n"
"InnoDB: We intentionally generate a memory trap.\n"
"InnoDB: Submit a detailed bug report" "InnoDB: Submit a detailed bug report"
" to http://bugs.mysql.com.\n" " to http://bugs.mysql.com.\n"
"InnoDB: If you get repeated assertion failures" "InnoDB: If you get repeated assertion failures"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment