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
fc1403d3
Commit
fc1403d3
authored
Nov 30, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove fil_space_t::is_deferred()
The public data member can be checked directly by the only caller.
parent
1188ef4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
extra/mariabackup/fil_cur.cc
extra/mariabackup/fil_cur.cc
+1
-1
storage/innobase/include/fil0fil.h
storage/innobase/include/fil0fil.h
+0
-9
No files found.
extra/mariabackup/fil_cur.cc
View file @
fc1403d3
...
...
@@ -420,7 +420,7 @@ xb_fil_cur_result_t xb_fil_cur_read(xb_fil_cur_t* cursor,
goto
func_exit
;
}
defer
=
space
->
is_deferred
()
;
defer
=
UT_LIST_GET_FIRST
(
space
->
chain
)
->
deferred
;
/* check pages for corruption and re-read if necessary. i.e. in case of
partially written pages */
for
(
page
=
cursor
->
buf
,
i
=
0
;
i
<
npages
;
...
...
storage/innobase/include/fil0fil.h
View file @
fc1403d3
...
...
@@ -510,10 +510,6 @@ struct fil_space_t final
/** @return whether the storage device is rotational (HDD, not SSD) */
inline
bool
is_rotational
()
const
;
/** whether the tablespace discovery is being deferred during crash
recovery due to incompletely written page 0 */
inline
bool
is_deferred
()
const
;
/** Open each file. Never invoked on .ibd files.
@param create_new_db whether to skip the call to fil_node_t::read_page0()
@return whether all files were opened */
...
...
@@ -1191,11 +1187,6 @@ inline bool fil_space_t::is_rotational() const
return
false
;
}
inline
bool
fil_space_t
::
is_deferred
()
const
{
return
UT_LIST_GET_FIRST
(
chain
)
->
deferred
;
}
/** Common InnoDB file extensions */
enum
ib_extention
{
NO_EXT
=
0
,
...
...
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