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
7326dcbf
Commit
7326dcbf
authored
Jul 08, 2003
by
lenz@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed mysqlhotcopy to actually abort if copying the tables failed.
(BUG#812)
parent
f8a767b5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/mysqlhotcopy.sh
scripts/mysqlhotcopy.sh
+2
-2
No files found.
scripts/mysqlhotcopy.sh
View file @
7326dcbf
...
@@ -660,9 +660,9 @@ sub safe_system
...
@@ -660,9 +660,9 @@ sub safe_system
print
"Executing '@cmd'
\n
"
if
$opt
{
debug
}
;
print
"Executing '@cmd'
\n
"
if
$opt
{
debug
}
;
my
$cp_status
=
system
"@cmd > /dev/null"
;
my
$cp_status
=
system
"@cmd > /dev/null"
;
if
(
$cp_status
!=
0
)
{
if
(
$cp_status
!=
0
)
{
warn
"
Burp ('scuse me). Trying backtick execution...
\n
"
if
$opt
{
debug
}
;
#'
warn
"
Executing command failed (
$cp_status
). Trying backtick execution...
\n
"
;
## try something else
## try something else
`
@cmd
`
&&
die
"Error: @cmd failed (
$cp_status
) while copying files.
\n
"
;
`
@cmd
`
||
die
"Error: @cmd failed (
$?
) while copying files.
\n
"
;
}
}
}
}
...
...
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