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
bcedcb13
Commit
bcedcb13
authored
Mar 23, 2020
by
Jan Lindström
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'codership-10.5-MDEV-21988' into 10.5
parents
02fe9975
24d1e07b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
sql/wsrep_schema.cc
sql/wsrep_schema.cc
+22
-0
No files found.
sql/wsrep_schema.cc
View file @
bcedcb13
...
...
@@ -139,6 +139,25 @@ class wsrep_off
my_bool
m_wsrep_on
;
};
class
thd_server_status
{
public:
thd_server_status
(
THD
*
thd
,
uint
server_status
,
bool
condition
)
:
m_thd
(
thd
)
,
m_thd_server_status
(
thd
->
server_status
)
{
if
(
condition
)
thd
->
server_status
=
server_status
;
}
~
thd_server_status
()
{
m_thd
->
server_status
=
m_thd_server_status
;
}
private:
THD
*
m_thd
;
uint
m_thd_server_status
;
};
class
thd_context_switch
{
public:
...
...
@@ -1094,6 +1113,9 @@ int Wsrep_schema::remove_fragments(THD* thd,
}
else
{
Wsrep_schema_impl
::
thd_server_status
thd_server_status
(
thd
,
thd
->
server_status
|
SERVER_STATUS_IN_TRANS
,
thd
->
in_multi_stmt_transaction_mode
());
Wsrep_schema_impl
::
finish_stmt
(
thd
);
}
...
...
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