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
014e0d41
Commit
014e0d41
authored
Sep 26, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update patch that restores slave databases from snapshots before start for 5.1
parent
f9cfbe72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+6
-4
No files found.
mysql-test/mysql-test-run.pl
View file @
014e0d41
...
...
@@ -2276,7 +2276,7 @@ sub mysql_install_db () {
my
$cluster_started_ok
=
1
;
# Assume it can be started
if
(
ndbcluster_start_install
(
$clusters
->
[
0
])
||
$
use_slaves
&&
ndbcluster_start_install
(
$clusters
->
[
1
]))
$
max_slave_num
&&
ndbcluster_start_install
(
$clusters
->
[
1
]))
{
mtr_warning
("
Failed to start install of cluster
");
$cluster_started_ok
=
0
;
...
...
@@ -2502,12 +2502,12 @@ sub im_prepare_data_dir($) {
# Restore snapshot of the installed slave databases
# if the snapshot exists
#
sub
restore_slave_databases
()
{
sub
restore_slave_databases
($)
{
my
(
$num_slaves
)
=
@_
;
if
(
-
d
$path_snapshot
)
{
# Restore the number of slave databases being used
for
(
my
$idx
=
0
;
$idx
<
$max_slave_num
;
$idx
++
)
for
(
my
$idx
=
0
;
$idx
<
$num_slaves
;
$idx
++
)
{
my
$data_dir
=
$slave
->
[
$idx
]
->
{'
path_myddir
'};
my
$name
=
basename
(
$data_dir
);
...
...
@@ -3651,6 +3651,8 @@ sub run_testcase_start_servers($) {
{
mtr_tofile
(
$slave
->
[
0
]
->
{'
path_myerr
'},"
CURRENT_TEST:
$tname
\n
");
restore_slave_databases
(
$tinfo
->
{'
slave_num
'});
do_before_start_slave
(
$tname
,
$tinfo
->
{'
slave_sh
'});
if
(
!
$opt_skip_ndbcluster_slave
and
...
...
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