mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +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) {
|
if (error) {
|
||||||
DBUG_PRINT("error", ("Got error: %ld", error));
|
DBUG_PRINT("error", ("Got error: %d", error));
|
||||||
DBUG_RETURN(error);
|
DBUG_RETURN(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4455,7 +4455,7 @@ ha_innobase::rnd_pos(
|
||||||
error = index_read(buf, pos, ref_length, HA_READ_KEY_EXACT);
|
error = index_read(buf, pos, ref_length, HA_READ_KEY_EXACT);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
DBUG_PRINT("error", ("Got error: %ld", error));
|
DBUG_PRINT("error", ("Got error: %d", error));
|
||||||
}
|
}
|
||||||
|
|
||||||
change_active_index(keynr);
|
change_active_index(keynr);
|
||||||
|
|
|
@ -625,8 +625,6 @@ buf_page_release(
|
||||||
RW_NO_LATCH */
|
RW_NO_LATCH */
|
||||||
mtr_t* mtr) /* in: mtr */
|
mtr_t* mtr) /* in: mtr */
|
||||||
{
|
{
|
||||||
ulint buf_fix_count;
|
|
||||||
|
|
||||||
ut_ad(block);
|
ut_ad(block);
|
||||||
|
|
||||||
ut_a(block->state == BUF_BLOCK_FILE_PAGE);
|
ut_a(block->state == BUF_BLOCK_FILE_PAGE);
|
||||||
|
@ -643,8 +641,7 @@ buf_page_release(
|
||||||
#ifdef UNIV_SYNC_DEBUG
|
#ifdef UNIV_SYNC_DEBUG
|
||||||
rw_lock_s_unlock(&(block->debug_latch));
|
rw_lock_s_unlock(&(block->debug_latch));
|
||||||
#endif
|
#endif
|
||||||
buf_fix_count = block->buf_fix_count;
|
block->buf_fix_count--;
|
||||||
block->buf_fix_count = buf_fix_count - 1;
|
|
||||||
|
|
||||||
mutex_exit(&block->mutex);
|
mutex_exit(&block->mutex);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue