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
74aef87c
Commit
74aef87c
authored
May 09, 2016
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the method name
it's always assert_<statement>, not <do something>_if_<condition>
parent
725ce0fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
sql/sql_class.h
sql/sql_class.h
+2
-2
sql/sql_list.h
sql/sql_list.h
+1
-1
No files found.
sql/sql_class.h
View file @
74aef87c
...
...
@@ -4084,12 +4084,12 @@ inline void add_to_active_threads(THD *thd)
/*
This should be called when you want to delete a thd that was not
running any queries.
This function will assert
if the THD was not
linked.
This function will assert
that the THD is
linked.
*/
inline
void
unlink_not_visible_thd
(
THD
*
thd
)
{
thd
->
assert_
if_
linked
();
thd
->
assert_linked
();
mysql_mutex_lock
(
&
LOCK_thread_count
);
thd
->
unlink
();
mysql_mutex_unlock
(
&
LOCK_thread_count
);
...
...
sql/sql_list.h
View file @
74aef87c
...
...
@@ -660,7 +660,7 @@ struct ilink
if
(
next
)
next
->
prev
=
prev
;
prev
=
0
;
next
=
0
;
}
inline
void
assert_
if_
linked
()
inline
void
assert_linked
()
{
DBUG_ASSERT
(
prev
!=
0
&&
next
!=
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