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
8f2f778d
Commit
8f2f778d
authored
Aug 23, 2000
by
jcole@tetra.spaceapes.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge jcole@jcole:/home/jcole/bk/mysql
into tetra.spaceapes.com:/usr/home/jcole/bk/mysql
parents
d564acf1
90e64246
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
Docs/manual.texi
Docs/manual.texi
+3
-0
scripts/mysqlhotcopy.sh
scripts/mysqlhotcopy.sh
+6
-4
No files found.
Docs/manual.texi
View file @
8f2f778d
...
@@ -35402,6 +35402,9 @@ though, so 3.23 is not released as a stable version yet.
...
@@ -35402,6 +35402,9 @@ though, so 3.23 is not released as a stable version yet.
@appendixsubsec Changes in release 3.23.23
@appendixsubsec Changes in release 3.23.23
@itemize @bullet
@itemize @bullet
@item
@item
Updated mysqlhotcopy to use the new @code{FLUSH TABLES table_list} syntax. Only
tables which are being backed up are flushed now.
@item
Changed behavior of @code{--enable-thread-safe-client} so
Changed behavior of @code{--enable-thread-safe-client} so
that both non-threaded (@code{-lmysqlclient}) and threaded
that both non-threaded (@code{-lmysqlclient}) and threaded
(@code{-lmysqlclient_r}) libraries are built. Users who linked
(@code{-lmysqlclient_r}) libraries are built. Users who linked
scripts/mysqlhotcopy.sh
View file @
8f2f778d
...
@@ -25,7 +25,7 @@ WARNING: THIS IS VERY MUCH A FIRST-CUT ALPHA. Comments/patches welcome.
...
@@ -25,7 +25,7 @@ WARNING: THIS IS VERY MUCH A FIRST-CUT ALPHA. Comments/patches welcome.
# Documentation continued at end of file
# Documentation continued at end of file
my
$VERSION
=
"1.
5
"
;
my
$VERSION
=
"1.
6
"
;
my
$OPTIONS
=
<<
"
_OPTIONS
";
my
$OPTIONS
=
<<
"
_OPTIONS
";
...
@@ -180,6 +180,7 @@ if ( defined $opt{regexp} ) {
...
@@ -180,6 +180,7 @@ if ( defined $opt{regexp} ) {
# --- get list of tables to hotcopy ---
# --- get list of tables to hotcopy ---
my
$hc_locks
=
""
;
my
$hc_locks
=
""
;
my
$hc_tables
=
""
;
my
$num_tables
=
0
;
my
$num_tables
=
0
;
my
$num_files
=
0
;
my
$num_files
=
0
;
...
@@ -208,6 +209,7 @@ foreach my $rdb ( @db_desc ) {
...
@@ -208,6 +209,7 @@ foreach my $rdb ( @db_desc ) {
$hc_locks
.
=
", "
if
(
length
$hc_locks
&&
@hc_tables
)
;
$hc_locks
.
=
", "
if
(
length
$hc_locks
&&
@hc_tables
)
;
$hc_locks
.
=
join
", "
, map
{
"
$_
READ"
}
@hc_tables
;
$hc_locks
.
=
join
", "
, map
{
"
$_
READ"
}
@hc_tables
;
$hc_tables
.
=
join
", "
, @hc_tables
;
$num_tables
+
=
scalar @hc_tables
;
$num_tables
+
=
scalar @hc_tables
;
$num_files
+
=
scalar @
{
$rdb
->
{
files
}}
;
$num_files
+
=
scalar @
{
$rdb
->
{
files
}}
;
...
@@ -286,7 +288,7 @@ my $hc_started = time; # count from time lock is granted
...
@@ -286,7 +288,7 @@ my $hc_started = time; # count from time lock is granted
if
(
$opt
{
dryrun
}
)
{
if
(
$opt
{
dryrun
}
)
{
print
"LOCK TABLES
$hc_locks
\n
"
;
print
"LOCK TABLES
$hc_locks
\n
"
;
print
"FLUSH TABLES
\n
"
;
print
"FLUSH TABLES
/*!32323
$hc_tables
*/
\n
"
;
print
"FLUSH LOGS
\n
"
if
(
$opt
{
flushlog
}
)
;
print
"FLUSH LOGS
\n
"
if
(
$opt
{
flushlog
}
)
;
}
}
else
{
else
{
...
@@ -297,8 +299,8 @@ else {
...
@@ -297,8 +299,8 @@ else {
# flush tables to make on-disk copy uptodate
# flush tables to make on-disk copy uptodate
$start
=
time
;
$start
=
time
;
$dbh
->do
(
"FLUSH TABLES"
)
;
$dbh
->do
(
"FLUSH TABLES
/*!32323
$hc_tables
*/
"
)
;
printf
"Flushed 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
}
)
;
}
}
...
...
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