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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7b3c89f1
Commit
7b3c89f1
authored
Oct 22, 2003
by
jani@rhols221.adsl.netsonic.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted a wrong patch from mysqlhotcopy. This is a real bug
in MySQL server...
parent
e6944793
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
scripts/mysqlhotcopy.sh
scripts/mysqlhotcopy.sh
+3
-3
No files found.
scripts/mysqlhotcopy.sh
View file @
7b3c89f1
...
@@ -453,13 +453,13 @@ if ( $opt{dryrun} ) {
...
@@ -453,13 +453,13 @@ if ( $opt{dryrun} ) {
}
}
else
{
else
{
my
$start
=
time
;
my
$start
=
time
;
$dbh
->do
(
'LOCK TABLES $hc_locks'
)
;
$dbh
->do
(
"LOCK TABLES
$hc_locks
"
)
;
printf
"Locked
$num_tables
tables in %d seconds.
\n
"
, time-
$start
unless
$opt
{
quiet
}
;
printf
"Locked
$num_tables
tables in %d seconds.
\n
"
, time-
$start
unless
$opt
{
quiet
}
;
$hc_started
=
time
;
# count from time lock is granted
$hc_started
=
time
;
# count from time lock is granted
# flush tables to make on-disk copy uptodate
# flush tables to make on-disk copy uptodate
$start
=
time
;
$start
=
time
;
$dbh
->do
(
'FLUSH TABLES /*!32323 $hc_tables */'
)
;
$dbh
->do
(
"FLUSH TABLES /*!32323
$hc_tables
*/"
)
;
printf
"Flushed tables (
$hc_tables
) in %d seconds.
\n
"
, time-
$start
unless
$opt
{
quiet
}
;
printf
"Flushed tables (
$hc_tables
) in %d seconds.
\n
"
, time-
$start
unless
$opt
{
quiet
}
;
$dbh
->do
(
"FLUSH LOGS"
)
if
(
$opt
{
flushlog
}
)
;
$dbh
->do
(
"FLUSH LOGS"
)
if
(
$opt
{
flushlog
}
)
;
$dbh
->do
(
"RESET MASTER"
)
if
(
$opt
{
resetmaster
}
)
;
$dbh
->do
(
"RESET MASTER"
)
if
(
$opt
{
resetmaster
}
)
;
...
@@ -467,7 +467,7 @@ else {
...
@@ -467,7 +467,7 @@ else {
if
(
$opt
{
record_log_pos
}
)
{
if
(
$opt
{
record_log_pos
}
)
{
record_log_pos
(
$dbh
,
$opt
{
record_log_pos
}
)
;
record_log_pos
(
$dbh
,
$opt
{
record_log_pos
}
)
;
$dbh
->do
(
'FLUSH TABLES /*!32323 $hc_tables */'
)
;
$dbh
->do
(
"FLUSH TABLES /*!32323
$hc_tables
*/"
)
;
}
}
}
}
...
...
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