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
b29a8118
Commit
b29a8118
authored
Jun 06, 2022
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: Remove fil_space_t::magic_n
parent
c86d1daa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
storage/innobase/fil/fil0fil.cc
storage/innobase/fil/fil0fil.cc
+1
-6
storage/innobase/include/fil0fil.h
storage/innobase/include/fil0fil.h
+0
-5
No files found.
storage/innobase/fil/fil0fil.cc
View file @
b29a8118
...
...
@@ -236,9 +236,7 @@ fil_space_get_by_id(
mysql_mutex_assert_owner
(
&
fil_system
.
mutex
);
HASH_SEARCH
(
hash
,
&
fil_system
.
spaces
,
id
,
fil_space_t
*
,
space
,
ut_ad
(
space
->
magic_n
==
FIL_SPACE_MAGIC_N
),
space
->
id
==
id
);
fil_space_t
*
,
space
,,
space
->
id
==
id
);
return
(
space
);
}
...
...
@@ -803,8 +801,6 @@ pfs_os_file_t fil_system_t::detach(fil_space_t *space, bool detach_handle)
else
if
(
space
==
temp_space
)
temp_space
=
nullptr
;
ut_a
(
space
->
magic_n
==
FIL_SPACE_MAGIC_N
);
for
(
fil_node_t
*
node
=
UT_LIST_GET_FIRST
(
space
->
chain
);
node
;
node
=
UT_LIST_GET_NEXT
(
chain
,
node
))
if
(
node
->
is_open
())
...
...
@@ -943,7 +939,6 @@ fil_space_t *fil_space_t::create(ulint id, ulint flags,
space
->
purpose
=
purpose
;
space
->
flags
=
flags
;
space
->
magic_n
=
FIL_SPACE_MAGIC_N
;
space
->
crypt_data
=
crypt_data
;
space
->
n_pending
.
store
(
CLOSING
,
std
::
memory_order_relaxed
);
...
...
storage/innobase/include/fil0fil.h
View file @
b29a8118
...
...
@@ -434,8 +434,6 @@ struct fil_space_t final
/** Stores last page freed lsn. Protected by freed_mutex */
lsn_t
last_freed_lsn
;
ulint
magic_n
;
/*!< FIL_SPACE_MAGIC_N */
/** @return whether doublewrite buffering is needed */
inline
bool
use_doublewrite
()
const
;
...
...
@@ -1085,9 +1083,6 @@ struct fil_space_t final
};
#ifndef UNIV_INNOCHECKSUM
/** Value of fil_space_t::magic_n */
#define FIL_SPACE_MAGIC_N 89472
/** File node of a tablespace or the log data space */
struct
fil_node_t
final
{
...
...
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