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
41200039
Commit
41200039
authored
Jul 01, 2005
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#11678: mysqldump --master-data should fail if master binlog disabled
parent
15d4217c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
client/mysqldump.c
client/mysqldump.c
+9
-0
No files found.
client/mysqldump.c
View file @
41200039
...
...
@@ -2356,6 +2356,7 @@ static int do_show_master_status(MYSQL *mysql_con)
row
=
mysql_fetch_row
(
master
);
if
(
row
&&
row
[
0
]
&&
row
[
1
])
{
/* SHOW MASTER STATUS reports file and position */
if
(
opt_comments
)
fprintf
(
md_result_file
,
"
\n
--
\n
-- Position to start replication or point-in-time "
...
...
@@ -2365,6 +2366,14 @@ static int do_show_master_status(MYSQL *mysql_con)
comment_prefix
,
row
[
0
],
row
[
1
]);
check_io
(
md_result_file
);
}
else
if
(
!
ignore_errors
)
{
/* SHOW MASTER STATUS reports nothing and --force is not enabled */
my_printf_error
(
0
,
"Error: Binlogging on server not active"
,
MYF
(
0
),
mysql_error
(
mysql_con
));
mysql_free_result
(
master
);
return
1
;
}
mysql_free_result
(
master
);
}
return
0
;
...
...
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