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
98e2c17e
Commit
98e2c17e
authored
Jul 16, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove fil_check_adress_in_tablespace()
parent
14543afd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
70 deletions
+24
-70
storage/innobase/buf/buf0dblwr.cc
storage/innobase/buf/buf0dblwr.cc
+10
-4
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+1
-20
storage/innobase/include/fil0fil.h
storage/innobase/include/fil0fil.h
+1
-11
storage/xtradb/buf/buf0dblwr.cc
storage/xtradb/buf/buf0dblwr.cc
+10
-4
storage/xtradb/fil/fil0fil.cc
storage/xtradb/fil/fil0fil.cc
+1
-20
storage/xtradb/include/fil0fil.h
storage/xtradb/include/fil0fil.h
+1
-11
No files found.
storage/innobase/buf/buf0dblwr.cc
View file @
98e2c17e
...
@@ -554,12 +554,18 @@ buf_dblwr_process()
...
@@ -554,12 +554,18 @@ buf_dblwr_process()
continue
;
continue
;
}
}
if
(
!
fil_check_adress_in_tablespace
(
space_id
,
page_no
))
{
if
(
!
space
()
->
size
)
{
fil_space_get_size
(
space_id
);
}
if
(
UNIV_UNLIKELY
(
space
()
->
size
<=
page_no
))
{
ib_logf
(
IB_LOG_LEVEL_WARN
,
ib_logf
(
IB_LOG_LEVEL_WARN
,
"A copy of page "
ULINTPF
":"
ULINTPF
"A copy of page "
ULINTPF
" in the doublewrite buffer slot "
ULINTPF
" in the doublewrite buffer slot "
ULINTPF
" is not within space bounds"
,
" is beyond the end of the tablespace "
space_id
,
page_no
,
page_no_dblwr
);
" %s ("
ULINTPF
" pages)"
,
page_no
,
page_no_dblwr
,
space
()
->
name
,
space
()
->
size
);
continue
;
continue
;
}
}
...
...
storage/innobase/fil/fil0fil.cc
View file @
98e2c17e
/*****************************************************************************
/*****************************************************************************
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2014, 20
19
, MariaDB Corporation.
Copyright (c) 2014, 20
20
, 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
...
@@ -1775,25 +1775,6 @@ fil_space_get_zip_size(
...
@@ -1775,25 +1775,6 @@ fil_space_get_zip_size(
return
(
flags
);
return
(
flags
);
}
}
/*******************************************************************//**
Checks if the pair space, page_no refers to an existing page in a tablespace
file space. The tablespace must be cached in the memory cache.
@return TRUE if the address is meaningful */
UNIV_INTERN
ibool
fil_check_adress_in_tablespace
(
/*===========================*/
ulint
id
,
/*!< in: space id */
ulint
page_no
)
/*!< in: page number */
{
if
(
fil_space_get_size
(
id
)
>
page_no
)
{
return
(
TRUE
);
}
return
(
FALSE
);
}
/****************************************************************//**
/****************************************************************//**
Initializes the tablespace memory cache. */
Initializes the tablespace memory cache. */
UNIV_INTERN
UNIV_INTERN
...
...
storage/innobase/include/fil0fil.h
View file @
98e2c17e
/*****************************************************************************
/*****************************************************************************
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 20
19
, MariaDB Corporation.
Copyright (c) 2013, 20
20
, 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
...
@@ -568,16 +568,6 @@ ulint
...
@@ -568,16 +568,6 @@ ulint
fil_space_get_zip_size
(
fil_space_get_zip_size
(
/*===================*/
/*===================*/
ulint
id
);
/*!< in: space id */
ulint
id
);
/*!< in: space id */
/*******************************************************************//**
Checks if the pair space, page_no refers to an existing page in a tablespace
file space. The tablespace must be cached in the memory cache.
@return TRUE if the address is meaningful */
UNIV_INTERN
ibool
fil_check_adress_in_tablespace
(
/*===========================*/
ulint
id
,
/*!< in: space id */
ulint
page_no
);
/*!< in: page number */
/****************************************************************//**
/****************************************************************//**
Initializes the tablespace memory cache. */
Initializes the tablespace memory cache. */
UNIV_INTERN
UNIV_INTERN
...
...
storage/xtradb/buf/buf0dblwr.cc
View file @
98e2c17e
...
@@ -554,12 +554,18 @@ buf_dblwr_process()
...
@@ -554,12 +554,18 @@ buf_dblwr_process()
continue
;
continue
;
}
}
if
(
!
fil_check_adress_in_tablespace
(
space_id
,
page_no
))
{
if
(
!
space
()
->
size
)
{
fil_space_get_size
(
space_id
);
}
if
(
UNIV_UNLIKELY
(
space
()
->
size
<=
page_no
))
{
ib_logf
(
IB_LOG_LEVEL_WARN
,
ib_logf
(
IB_LOG_LEVEL_WARN
,
"A copy of page "
ULINTPF
":"
ULINTPF
"A copy of page "
ULINTPF
" in the doublewrite buffer slot "
ULINTPF
" in the doublewrite buffer slot "
ULINTPF
" is not within space bounds"
,
" is beyond the end of the tablespace "
space_id
,
page_no
,
page_no_dblwr
);
" %s ("
ULINTPF
" pages)"
,
page_no
,
page_no_dblwr
,
space
()
->
name
,
space
()
->
size
);
continue
;
continue
;
}
}
...
...
storage/xtradb/fil/fil0fil.cc
View file @
98e2c17e
/*****************************************************************************
/*****************************************************************************
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2014, 20
19
, MariaDB Corporation.
Copyright (c) 2014, 20
20
, 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
...
@@ -1815,25 +1815,6 @@ fil_space_get_zip_size(
...
@@ -1815,25 +1815,6 @@ fil_space_get_zip_size(
return
(
flags
);
return
(
flags
);
}
}
/*******************************************************************//**
Checks if the pair space, page_no refers to an existing page in a tablespace
file space. The tablespace must be cached in the memory cache.
@return TRUE if the address is meaningful */
UNIV_INTERN
ibool
fil_check_adress_in_tablespace
(
/*===========================*/
ulint
id
,
/*!< in: space id */
ulint
page_no
)
/*!< in: page number */
{
if
(
fil_space_get_size
(
id
)
>
page_no
)
{
return
(
TRUE
);
}
return
(
FALSE
);
}
/****************************************************************//**
/****************************************************************//**
Initializes the tablespace memory cache. */
Initializes the tablespace memory cache. */
UNIV_INTERN
UNIV_INTERN
...
...
storage/xtradb/include/fil0fil.h
View file @
98e2c17e
/*****************************************************************************
/*****************************************************************************
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved.
Copyright (c) 2013, 20
19
, MariaDB Corporation.
Copyright (c) 2013, 20
20
, 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
...
@@ -574,16 +574,6 @@ ulint
...
@@ -574,16 +574,6 @@ ulint
fil_space_get_zip_size
(
fil_space_get_zip_size
(
/*===================*/
/*===================*/
ulint
id
);
/*!< in: space id */
ulint
id
);
/*!< in: space id */
/*******************************************************************//**
Checks if the pair space, page_no refers to an existing page in a tablespace
file space. The tablespace must be cached in the memory cache.
@return TRUE if the address is meaningful */
UNIV_INTERN
ibool
fil_check_adress_in_tablespace
(
/*===========================*/
ulint
id
,
/*!< in: space id */
ulint
page_no
);
/*!< in: page number */
/****************************************************************//**
/****************************************************************//**
Initializes the tablespace memory cache. */
Initializes the tablespace memory cache. */
UNIV_INTERN
UNIV_INTERN
...
...
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