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
c34eec51
Commit
c34eec51
authored
Jul 01, 2003
by
vva@eagle.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
made error output more detailed
parent
a86d23b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+4
-4
No files found.
client/mysqlbinlog.cc
View file @
c34eec51
...
...
@@ -346,7 +346,7 @@ static void dump_remote_log_entries(const char* logname)
}
static
int
check_header
(
IO_CACHE
*
file
)
static
int
check_header
(
IO_CACHE
*
file
,
const
char
*
fname
)
{
byte
header
[
BIN_LOG_HEADER_SIZE
];
byte
buf
[
PROBE_HEADER_LEN
];
...
...
@@ -357,7 +357,7 @@ static int check_header(IO_CACHE* file)
if
(
my_b_read
(
file
,
header
,
sizeof
(
header
)))
die
(
"Failed reading header; Probably an empty file"
);
if
(
memcmp
(
header
,
BINLOG_MAGIC
,
sizeof
(
header
)))
die
(
"File
is not a binary log file"
);
die
(
"File
%s is not a binary log file"
,
fname
);
if
(
!
my_b_read
(
file
,
buf
,
sizeof
(
buf
)))
{
if
(
buf
[
4
]
==
START_EVENT
)
...
...
@@ -390,14 +390,14 @@ static void dump_local_log_entries(const char* logname)
if
(
init_io_cache
(
file
,
fd
,
0
,
READ_CACHE
,
(
my_off_t
)
position
,
0
,
MYF
(
MY_WME
|
MY_NABP
)))
exit
(
1
);
old_format
=
check_header
(
file
);
old_format
=
check_header
(
file
,
logname
);
}
else
{
if
(
init_io_cache
(
file
,
fileno
(
result_file
),
0
,
READ_CACHE
,
(
my_off_t
)
0
,
0
,
MYF
(
MY_WME
|
MY_NABP
|
MY_DONT_CHECK_FILESIZE
)))
exit
(
1
);
old_format
=
check_header
(
file
);
old_format
=
check_header
(
file
,
""
);
if
(
position
)
{
/* skip 'position' characters from stdout */
...
...
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