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
da76c1bd
Commit
da76c1bd
authored
Apr 25, 2017
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor cleanup
parent
ce3ffefc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
19 deletions
+14
-19
storage/innobase/buf/buf0dblwr.cc
storage/innobase/buf/buf0dblwr.cc
+6
-10
storage/innobase/include/buf0dblwr.h
storage/innobase/include/buf0dblwr.h
+7
-8
storage/innobase/log/log0recv.cc
storage/innobase/log/log0recv.cc
+1
-1
No files found.
storage/innobase/buf/buf0dblwr.cc
View file @
da76c1bd
/*****************************************************************************
Copyright (c) 1995, 2015, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 2017, MariaDB Corporation.
All Rights Reserved.
Copyright (c) 2013, 2017, 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
...
...
@@ -168,8 +168,7 @@ doublewrite buffer is placed on the trx system header page.
@return true if successful, false if not. */
MY_ATTRIBUTE
((
warn_unused_result
))
bool
buf_dblwr_create
(
void
)
/*==================*/
buf_dblwr_create
()
{
buf_block_t
*
block2
;
buf_block_t
*
new_block
;
...
...
@@ -510,7 +509,7 @@ buf_dblwr_init_or_load_pages(
/** Process and remove the double write buffer pages for all tablespaces. */
void
buf_dblwr_process
(
void
)
buf_dblwr_process
()
{
ulint
page_no_dblwr
=
0
;
byte
*
read_buf
;
...
...
@@ -527,9 +526,7 @@ buf_dblwr_process(void)
i
!=
recv_dblwr
.
pages
.
end
();
++
i
,
++
page_no_dblwr
)
{
byte
*
page
=
*
i
;
ulint
page_no
=
page_get_page_no
(
page
);
ulint
space_id
=
page_get_space_id
(
page
);
fil_space_t
*
space
=
fil_space_get
(
space_id
);
if
(
space
==
NULL
)
{
...
...
@@ -540,6 +537,7 @@ buf_dblwr_process(void)
fil_space_open_if_needed
(
space
);
const
ulint
page_no
=
page_get_page_no
(
page
);
const
page_id_t
page_id
(
space_id
,
page_no
);
if
(
page_no
>=
space
->
size
)
{
...
...
@@ -676,8 +674,7 @@ buf_dblwr_process(void)
/****************************************************************//**
Frees doublewrite buffer. */
void
buf_dblwr_free
(
void
)
/*================*/
buf_dblwr_free
()
{
/* Free the double write data structures. */
ut_a
(
buf_dblwr
!=
NULL
);
...
...
@@ -932,8 +929,7 @@ important to call this function after a batch of writes has been posted,
and also when we may have to wait for a page latch! Otherwise a deadlock
of threads can occur. */
void
buf_dblwr_flush_buffered_writes
(
void
)
/*=================================*/
buf_dblwr_flush_buffered_writes
()
{
byte
*
write_buf
;
ulint
first_free
;
...
...
storage/innobase/include/buf0dblwr.h
View file @
da76c1bd
/*****************************************************************************
Copyright (c) 1995, 2016, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2017, MariaDB Corporation.
All Rights Reserved.
Copyright (c) 2017, 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
...
...
@@ -44,8 +44,7 @@ doublewrite buffer is placed on the trx system header page.
@return true if successful, false if not. */
MY_ATTRIBUTE
((
warn_unused_result
))
bool
buf_dblwr_create
(
void
);
/*==================*/
buf_dblwr_create
();
/****************************************************************//**
At a database startup initializes the doublewrite buffer memory structure if
...
...
@@ -61,13 +60,13 @@ buf_dblwr_init_or_load_pages(
/** Process and remove the double write buffer pages for all tablespaces. */
void
buf_dblwr_process
(
void
);
buf_dblwr_process
();
/****************************************************************//**
frees doublewrite buffer. */
void
buf_dblwr_free
(
void
);
/*================*/
buf_dblwr_free
();
/********************************************************************//**
Updates the doublewrite buffer when an IO request is completed. */
void
...
...
@@ -105,8 +104,8 @@ important to call this function after a batch of writes has been posted,
and also when we may have to wait for a page latch! Otherwise a deadlock
of threads can occur. */
void
buf_dblwr_flush_buffered_writes
(
void
);
/*=================================*/
buf_dblwr_flush_buffered_writes
();
/********************************************************************//**
Writes a page to the doublewrite buffer on disk, sync it, then write
the page to the datafile and sync the datafile. This function is used
...
...
storage/innobase/log/log0recv.cc
View file @
da76c1bd
...
...
@@ -2986,7 +2986,7 @@ recv_init_missing_space(dberr_t err, const recv_spaces_t::const_iterator& i)
@return error code or DB_SUCCESS */
static
MY_ATTRIBUTE
((
warn_unused_result
))
dberr_t
recv_init_crash_recovery_spaces
(
void
)
recv_init_crash_recovery_spaces
()
{
typedef
std
::
set
<
ulint
>
space_set_t
;
bool
flag_deleted
=
false
;
...
...
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