Commit 74904a66 authored by Marko Mäkelä's avatar Marko Mäkelä

Remove UT_NOT_USED

btr_pcur_move_to_last_on_page(): Merge with the only caller.
parent 5a2110e7
...@@ -2101,13 +2101,8 @@ A thread which monitors global key state and rotates tablespaces accordingly ...@@ -2101,13 +2101,8 @@ A thread which monitors global key state and rotates tablespaces accordingly
@return a dummy parameter */ @return a dummy parameter */
extern "C" UNIV_INTERN extern "C" UNIV_INTERN
os_thread_ret_t os_thread_ret_t
DECLARE_THREAD(fil_crypt_thread)( DECLARE_THREAD(fil_crypt_thread)(void*)
/*=============================*/
void* arg __attribute__((unused))) /*!< in: a dummy parameter required
* by os_thread_create */
{ {
UT_NOT_USED(arg);
mutex_enter(&fil_crypt_threads_mutex); mutex_enter(&fil_crypt_threads_mutex);
uint thread_no = srv_n_fil_crypt_threads_started; uint thread_no = srv_n_fil_crypt_threads_started;
srv_n_fil_crypt_threads_started++; srv_n_fil_crypt_threads_started++;
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 2018, MariaDB Corporation. Copyright (c) 2017, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -328,14 +328,6 @@ btr_pcur_move_to_prev( ...@@ -328,14 +328,6 @@ btr_pcur_move_to_prev(
function may release the page latch */ function may release the page latch */
mtr_t* mtr); /*!< in: mtr */ mtr_t* mtr); /*!< in: mtr */
/*********************************************************//** /*********************************************************//**
Moves the persistent cursor to the last record on the same page. */
UNIV_INLINE
void
btr_pcur_move_to_last_on_page(
/*==========================*/
btr_pcur_t* cursor, /*!< in: persistent cursor */
mtr_t* mtr); /*!< in: mtr */
/*********************************************************//**
Moves the persistent cursor to the next user record in the tree. If no user Moves the persistent cursor to the next user record in the tree. If no user
records are left, the cursor ends up 'after last in tree'. records are left, the cursor ends up 'after last in tree'.
@return TRUE if the cursor moved forward, ending on a user record */ @return TRUE if the cursor moved forward, ending on a user record */
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 2017, MariaDB Corporation. Copyright (c) 2015, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -280,24 +280,6 @@ btr_pcur_move_to_prev_on_page( ...@@ -280,24 +280,6 @@ btr_pcur_move_to_prev_on_page(
cursor->old_stored = false; cursor->old_stored = false;
} }
/*********************************************************//**
Moves the persistent cursor to the last record on the same page. */
UNIV_INLINE
void
btr_pcur_move_to_last_on_page(
/*==========================*/
btr_pcur_t* cursor, /*!< in: persistent cursor */
mtr_t* mtr) /*!< in: mtr */
{
UT_NOT_USED(mtr);
ut_ad(cursor->latch_mode != BTR_NO_LATCHES);
page_cur_set_after_last(btr_pcur_get_block(cursor),
btr_pcur_get_page_cur(cursor));
cursor->old_stored = false;
}
/*********************************************************//** /*********************************************************//**
Moves the persistent cursor to the next user record in the tree. If no user Moves the persistent cursor to the next user record in the tree. If no user
records are left, the cursor ends up 'after last in tree'. records are left, the cursor ends up 'after last in tree'.
......
/***************************************************************************** /*****************************************************************************
Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 1994, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation. Copyright (c) 2017, 2019, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify it under This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software the terms of the GNU General Public License as published by the Free Software
...@@ -68,10 +68,6 @@ ut_dbg_assertion_failed( ...@@ -68,10 +68,6 @@ ut_dbg_assertion_failed(
#define ut_d(EXPR) #define ut_d(EXPR)
#endif #endif
/** Silence warnings about an unused variable by doing a null assignment.
@param A the unused variable */
#define UT_NOT_USED(A) A = A
#if defined(HAVE_SYS_TIME_H) && defined(HAVE_SYS_RESOURCE_H) #if defined(HAVE_SYS_TIME_H) && defined(HAVE_SYS_RESOURCE_H)
#define HAVE_UT_CHRONO_T #define HAVE_UT_CHRONO_T
......
...@@ -4871,8 +4871,9 @@ row_search_mvcc( ...@@ -4871,8 +4871,9 @@ row_search_mvcc(
<< " of table " << index->table->name << " of table " << index->table->name
<< ". We try to skip the rest of the page."; << ". We try to skip the rest of the page.";
btr_pcur_move_to_last_on_page(pcur, &mtr); page_cur_set_after_last(btr_pcur_get_block(pcur),
btr_pcur_get_page_cur(pcur));
pcur->old_stored = false;
goto next_rec; goto next_rec;
} }
} }
......
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