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
fe84398b
Commit
fe84398b
authored
Jun 07, 2005
by
elliot@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/Users/emurphy/src/bk-clean/mysql-4.1
into mysql.com:/Users/emurphy/src/work/mysql-4.1
parents
093573b6
2a1f5c07
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
3 deletions
+19
-3
.bzrignore
.bzrignore
+1
-0
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
scripts/mysqlhotcopy.sh
scripts/mysqlhotcopy.sh
+17
-3
No files found.
.bzrignore
View file @
fe84398b
...
@@ -1052,3 +1052,4 @@ vio/test-ssl
...
@@ -1052,3 +1052,4 @@ vio/test-ssl
vio/test-sslclient
vio/test-sslclient
vio/test-sslserver
vio/test-sslserver
vio/viotest-ssl
vio/viotest-ssl
scripts/mysqlhotcopy.sh.rej
BitKeeper/etc/logging_ok
View file @
fe84398b
...
@@ -47,6 +47,7 @@ dlenev@build.mysql.com
...
@@ -47,6 +47,7 @@ dlenev@build.mysql.com
dlenev@jabberwock.localdomain
dlenev@jabberwock.localdomain
dlenev@mysql.com
dlenev@mysql.com
ejonore@mc03.ndb.mysql.com
ejonore@mc03.ndb.mysql.com
elliot@mysql.com
evgen@moonbone.(none)
evgen@moonbone.(none)
evgen@moonbone.local
evgen@moonbone.local
gbichot@bk-internal.mysql.com
gbichot@bk-internal.mysql.com
...
...
scripts/mysqlhotcopy.sh
View file @
fe84398b
...
@@ -746,9 +746,15 @@ sub record_log_pos {
...
@@ -746,9 +746,15 @@ sub record_log_pos {
my
(
$file
,
$position
)
=
get_row
(
$dbh
,
"show master status"
)
;
my
(
$file
,
$position
)
=
get_row
(
$dbh
,
"show master status"
)
;
die
"master status is undefined"
if
!
defined
$file
||
!
defined
$position
;
die
"master status is undefined"
if
!
defined
$file
||
!
defined
$position
;
my
(
$master_host
, undef, undef, undef,
$log_file
,
$log_pos
)
my
$row_hash
=
get_row_hash
(
$dbh
,
"show slave status"
)
;
=
get_row
(
$dbh
,
"show slave status"
)
;
my
(
$master_host
,
$log_file
,
$log_pos
)
;
if
(
$dbh
->
{
mysql_serverinfo
}
=
~ /^3
\.
23/
)
{
(
$master_host
,
$log_file
,
$log_pos
)
=
@
{
$row_hash
}{
qw / Master_Host Log_File Pos /
}
;
}
else
{
(
$master_host
,
$log_file
,
$log_pos
)
=
@
{
$row_hash
}{
qw / Master_Host Master_Log_File Read_Master_Log_Pos /
}
;
}
my
$hostname
=
hostname
()
;
my
$hostname
=
hostname
()
;
$dbh
->do
(
qq
{
replace into
$table_name
$dbh
->do
(
qq
{
replace into
$table_name
...
@@ -773,6 +779,14 @@ sub get_row {
...
@@ -773,6 +779,14 @@ sub get_row {
return
$sth
->fetchrow_array
()
;
return
$sth
->fetchrow_array
()
;
}
}
sub get_row_hash
{
my
(
$dbh
,
$sql
)
=
@_
;
my
$sth
=
$dbh
->prepare
(
$sql
)
;
$sth
->execute
;
return
$sth
->fetchrow_hashref
()
;
}
sub scan_raid_dir
{
sub scan_raid_dir
{
my
(
$r_db_files
,
$data_dir
, @raid_dir
)
=
@_
;
my
(
$r_db_files
,
$data_dir
, @raid_dir
)
=
@_
;
...
...
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