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
7f243b8d
Commit
7f243b8d
authored
Aug 31, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only install the first masters db and copy it for the other
Gives slightly faster startup
parent
31df5d1d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
mysql-test/lib/mtr_misc.pl
mysql-test/lib/mtr_misc.pl
+2
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+15
-2
No files found.
mysql-test/lib/mtr_misc.pl
View file @
7f243b8d
...
...
@@ -139,6 +139,8 @@ sub mtr_copy_dir($$) {
my
$from_dir
=
shift
;
my
$to_dir
=
shift
;
# mtr_verbose("Copying from $from_dir to $to_dir");
mkpath
("
$to_dir
");
opendir
(
DIR
,
"
$from_dir
")
or
mtr_error
("
Can't find
$from_dir
$!
");
...
...
mysql-test/mysql-test-run.pl
View file @
7f243b8d
...
...
@@ -357,6 +357,7 @@ sub run_benchmarks ($);
sub
initialize_servers
();
sub
mysql_install_db
();
sub
install_db
($$);
sub
copy_install_db
($$);
sub
run_testcase
($);
sub
run_testcase_stop_servers
($$$);
sub
run_testcase_start_servers
($);
...
...
@@ -2237,7 +2238,7 @@ sub mysql_install_db () {
# FIXME not exactly true I think, needs improvements
install_db
('
master
',
$master
->
[
0
]
->
{'
path_myddir
'});
install_db
('
master
',
$master
->
[
1
]
->
{'
path_myddir
'});
copy_
install_db
('
master
',
$master
->
[
1
]
->
{'
path_myddir
'});
if
(
$use_slaves
)
{
...
...
@@ -2302,6 +2303,18 @@ sub mysql_install_db () {
}
sub
copy_install_db
($$)
{
my
$type
=
shift
;
my
$data_dir
=
shift
;
mtr_report
("
Installing
\
u
$type
Database
");
# Just copy the installed db from first master
mtr_copy_dir
(
$master
->
[
0
]
->
{'
path_myddir
'},
$data_dir
);
}
sub
install_db
($$)
{
my
$type
=
shift
;
my
$data_dir
=
shift
;
...
...
@@ -2456,7 +2469,7 @@ sub im_prepare_data_dir($) {
foreach
my
$instance
(
@
{
$instance_manager
->
{'
instances
'}})
{
install_db
(
copy_
install_db
(
'
im_mysqld_
'
.
$instance
->
{'
server_id
'},
$instance
->
{'
path_datadir
'});
}
...
...
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