mirror of
https://github.com/MariaDB/server.git
synced 2025-01-24 15:54:37 +01:00
Minor cleanup.
ha_innobase::rnd_pos(): Use correct format in DBUG_PRINT statements. buf_page_release(): Remove the local variable buf_fix_count.
This commit is contained in:
parent
6ad2ddcc69
commit
f3cf33657c
2 changed files with 3 additions and 6 deletions
|
@ -4445,7 +4445,7 @@ ha_innobase::rnd_pos(
|
|||
}
|
||||
|
||||
if (error) {
|
||||
DBUG_PRINT("error", ("Got error: %ld", error));
|
||||
DBUG_PRINT("error", ("Got error: %d", error));
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
|
@ -4455,7 +4455,7 @@ ha_innobase::rnd_pos(
|
|||
error = index_read(buf, pos, ref_length, HA_READ_KEY_EXACT);
|
||||
|
||||
if (error) {
|
||||
DBUG_PRINT("error", ("Got error: %ld", error));
|
||||
DBUG_PRINT("error", ("Got error: %d", error));
|
||||
}
|
||||
|
||||
change_active_index(keynr);
|
||||
|
|
|
@ -625,8 +625,6 @@ buf_page_release(
|
|||
RW_NO_LATCH */
|
||||
mtr_t* mtr) /* in: mtr */
|
||||
{
|
||||
ulint buf_fix_count;
|
||||
|
||||
ut_ad(block);
|
||||
|
||||
ut_a(block->state == BUF_BLOCK_FILE_PAGE);
|
||||
|
@ -643,8 +641,7 @@ buf_page_release(
|
|||
#ifdef UNIV_SYNC_DEBUG
|
||||
rw_lock_s_unlock(&(block->debug_latch));
|
||||
#endif
|
||||
buf_fix_count = block->buf_fix_count;
|
||||
block->buf_fix_count = buf_fix_count - 1;
|
||||
block->buf_fix_count--;
|
||||
|
||||
mutex_exit(&block->mutex);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue