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
74904a66
Commit
74904a66
authored
May 20, 2019
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove UT_NOT_USED
btr_pcur_move_to_last_on_page(): Merge with the only caller.
parent
5a2110e7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
41 deletions
+7
-41
storage/innobase/fil/fil0crypt.cc
storage/innobase/fil/fil0crypt.cc
+1
-6
storage/innobase/include/btr0pcur.h
storage/innobase/include/btr0pcur.h
+1
-9
storage/innobase/include/btr0pcur.ic
storage/innobase/include/btr0pcur.ic
+1
-19
storage/innobase/include/ut0dbg.h
storage/innobase/include/ut0dbg.h
+1
-5
storage/innobase/row/row0sel.cc
storage/innobase/row/row0sel.cc
+3
-2
No files found.
storage/innobase/fil/fil0crypt.cc
View file @
74904a66
...
...
@@ -2101,13 +2101,8 @@ A thread which monitors global key state and rotates tablespaces accordingly
@return a dummy parameter */
extern
"C"
UNIV_INTERN
os_thread_ret_t
DECLARE_THREAD
(
fil_crypt_thread
)(
/*=============================*/
void
*
arg
__attribute__
((
unused
)))
/*!< in: a dummy parameter required
* by os_thread_create */
DECLARE_THREAD
(
fil_crypt_thread
)(
void
*
)
{
UT_NOT_USED
(
arg
);
mutex_enter
(
&
fil_crypt_threads_mutex
);
uint
thread_no
=
srv_n_fil_crypt_threads_started
;
srv_n_fil_crypt_threads_started
++
;
...
...
storage/innobase/include/btr0pcur.h
View file @
74904a66
/*****************************************************************************
Copyright (c) 1996, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, 201
8
, MariaDB Corporation.
Copyright (c) 2017, 201
9
, MariaDB Corporation.
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
...
...
@@ -328,14 +328,6 @@ btr_pcur_move_to_prev(
function may release the page latch */
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
records are left, the cursor ends up 'after last in tree'.
@return TRUE if the cursor moved forward, ending on a user record */
...
...
storage/innobase/include/btr0pcur.ic
View file @
74904a66
/*****************************************************************************
Copyright (c) 1996, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2015, 201
7
, MariaDB Corporation.
Copyright (c) 2015, 201
9
, MariaDB Corporation.
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
...
...
@@ -280,24 +280,6 @@ btr_pcur_move_to_prev_on_page(
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
records are left, the cursor ends up 'after last in tree'.
...
...
storage/innobase/include/ut0dbg.h
View file @
74904a66
/*****************************************************************************
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
the terms of the GNU General Public License as published by the Free Software
...
...
@@ -68,10 +68,6 @@ ut_dbg_assertion_failed(
#define ut_d(EXPR)
#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)
#define HAVE_UT_CHRONO_T
...
...
storage/innobase/row/row0sel.cc
View file @
74904a66
...
...
@@ -4871,8 +4871,9 @@ row_search_mvcc(
<<
" of table "
<<
index
->
table
->
name
<<
". 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
;
}
}
...
...
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