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
7e7235fa
Commit
7e7235fa
authored
Nov 24, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup: offsetof instead of my_offsetof
mdl_hash_function(): Use plain offsetof; MDL_key has standard layout.
parent
1c7dd233
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
sql/mdl.cc
sql/mdl.cc
+1
-1
No files found.
sql/mdl.cc
View file @
7e7235fa
...
...
@@ -777,7 +777,7 @@ int mdl_iterate(mdl_iterator_callback callback, void *arg)
my_hash_value_type
mdl_hash_function
(
CHARSET_INFO
*
cs
,
const
uchar
*
key
,
size_t
length
)
{
MDL_key
*
mdl_key
=
(
MDL_key
*
)
(
key
-
my_
offsetof
(
MDL_key
,
m_ptr
));
MDL_key
*
mdl_key
=
(
MDL_key
*
)
(
key
-
offsetof
(
MDL_key
,
m_ptr
));
return
mdl_key
->
hash_value
();
}
...
...
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