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
f3f09def
Commit
f3f09def
authored
Jan 20, 2023
by
Jan Lindström
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'codership-10.4-fix-sst_received' into bb-10.4-MDEV-30419
parents
afb5deb9
b2b9d916
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
8 deletions
+27
-8
sql/wsrep_mysqld.cc
sql/wsrep_mysqld.cc
+18
-4
sql/wsrep_sst.cc
sql/wsrep_sst.cc
+8
-3
wsrep-lib
wsrep-lib
+1
-1
No files found.
sql/wsrep_mysqld.cc
View file @
f3f09def
...
...
@@ -915,13 +915,19 @@ void wsrep_init_startup (bool sst_first)
With mysqldump SST (!sst_first) wait until the server reaches
joiner state and procedd to accepting connections.
*/
int
err
=
0
;
if
(
sst_first
)
{
server_state
.
wait_until_state
(
Wsrep_server_state
::
s_initializing
);
err
=
server_state
.
wait_until_state
(
Wsrep_server_state
::
s_initializing
);
}
else
{
server_state
.
wait_until_state
(
Wsrep_server_state
::
s_joiner
);
err
=
server_state
.
wait_until_state
(
Wsrep_server_state
::
s_joiner
);
}
if
(
err
)
{
WSREP_ERROR
(
"Wsrep startup was interrupted"
);
unireg_abort
(
1
);
}
}
...
...
@@ -1016,7 +1022,11 @@ void wsrep_stop_replication(THD *thd)
{
WSREP_DEBUG
(
"Disconnect provider"
);
Wsrep_server_state
::
instance
().
disconnect
();
Wsrep_server_state
::
instance
().
wait_until_state
(
Wsrep_server_state
::
s_disconnected
);
if
(
Wsrep_server_state
::
instance
().
wait_until_state
(
Wsrep_server_state
::
s_disconnected
))
{
WSREP_WARN
(
"Wsrep interrupted while waiting for disconnected state"
);
}
}
/* my connection, should not terminate with wsrep_close_client_connection(),
...
...
@@ -1038,7 +1048,11 @@ void wsrep_shutdown_replication()
{
WSREP_DEBUG
(
"Disconnect provider"
);
Wsrep_server_state
::
instance
().
disconnect
();
Wsrep_server_state
::
instance
().
wait_until_state
(
Wsrep_server_state
::
s_disconnected
);
if
(
Wsrep_server_state
::
instance
().
wait_until_state
(
Wsrep_server_state
::
s_disconnected
))
{
WSREP_WARN
(
"Wsrep interrupted while waiting for disconnected state"
);
}
}
wsrep_close_client_connections
(
TRUE
);
...
...
sql/wsrep_sst.cc
View file @
f3f09def
...
...
@@ -336,9 +336,14 @@ static bool wsrep_sst_complete (THD* thd,
if
((
state
==
Wsrep_server_state
::
s_joiner
||
state
==
Wsrep_server_state
::
s_initialized
))
{
Wsrep_server_state
::
instance
().
sst_received
(
client_service
,
rcode
);
WSREP_INFO
(
"SST succeeded for position %s"
,
start_pos_buf
);
if
(
Wsrep_server_state
::
instance
().
sst_received
(
client_service
,
rcode
))
{
failed
=
true
;
}
else
{
WSREP_INFO
(
"SST succeeded for position %s"
,
start_pos_buf
);
}
}
else
{
...
...
wsrep-lib
@
275a0af8
Subproject commit
f8ff2cfdd4c6424ffd96fc53bcc0f2e1d9ffe137
Subproject commit
275a0af8c5b92f0ee33cfe9e23f3db5f59b56e9d
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