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
a0487a82
Commit
a0487a82
authored
Nov 22, 2005
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/users/lthalmann/bkroot/mysql-5.0
into mysql.com:/users/lthalmann/bk/mysql-5.0-hexdump
parents
c2abd08d
9851469d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
sql/log_event.cc
sql/log_event.cc
+12
-6
No files found.
sql/log_event.cc
View file @
a0487a82
...
...
@@ -901,14 +901,16 @@ void Log_event::print_header(FILE* file, PRINT_EVENT_INFO* print_event_info)
/* Pretty-print event common header if header is exactly 19 bytes */
if
(
print_event_info
->
common_header_len
==
LOG_EVENT_MINIMAL_HEADER_LEN
)
{
DBUG_ASSERT
(
hexdump_from
==
(
unsigned
long
)
hexdump_from
);
fprintf
(
file
,
"# Position Timestamp Type Master ID "
"Size Master Pos Flags
\n
"
);
fprintf
(
file
,
"# %8.8lx %02x %02x %02x %02x %02x "
"%02x %02x %02x %02x %02x %02x %02x %02x "
"%02x %02x %02x %02x %02x %02x
\n
"
,
hexdump_from
,
ptr
[
0
],
ptr
[
1
],
ptr
[
2
],
ptr
[
3
],
ptr
[
4
],
ptr
[
5
],
ptr
[
6
],
ptr
[
7
],
ptr
[
8
],
ptr
[
9
],
ptr
[
10
],
ptr
[
11
],
ptr
[
12
],
ptr
[
13
],
ptr
[
14
],
ptr
[
15
],
ptr
[
16
],
ptr
[
17
],
ptr
[
18
]);
(
unsigned
long
)
hexdump_from
,
ptr
[
0
],
ptr
[
1
],
ptr
[
2
],
ptr
[
3
],
ptr
[
4
],
ptr
[
5
],
ptr
[
6
],
ptr
[
7
],
ptr
[
8
],
ptr
[
9
],
ptr
[
10
],
ptr
[
11
],
ptr
[
12
],
ptr
[
13
],
ptr
[
14
],
ptr
[
15
],
ptr
[
16
],
ptr
[
17
],
ptr
[
18
]);
ptr
+=
LOG_EVENT_MINIMAL_HEADER_LEN
;
hexdump_from
+=
LOG_EVENT_MINIMAL_HEADER_LEN
;
}
...
...
@@ -925,8 +927,10 @@ void Log_event::print_header(FILE* file, PRINT_EVENT_INFO* print_event_info)
if
(
i
%
16
==
15
)
{
DBUG_ASSERT
(
hexdump_from
==
(
unsigned
long
)
hexdump_from
);
fprintf
(
file
,
"# %8.8lx %-48.48s |%16s|
\n
"
,
hexdump_from
+
(
i
&
0xfffffff0
),
hex_string
,
char_string
);
(
unsigned
long
)
(
hexdump_from
+
(
i
&
0xfffffff0
)),
hex_string
,
char_string
);
hex_string
[
0
]
=
0
;
char_string
[
0
]
=
0
;
c
=
char_string
;
...
...
@@ -938,8 +942,10 @@ void Log_event::print_header(FILE* file, PRINT_EVENT_INFO* print_event_info)
/* Non-full last line */
if
(
hex_string
[
0
])
{
printf
(
"# %8.8lx %-48.48s |%s|
\n
# "
,
hexdump_from
+
(
i
&
0xfffffff0
),
hex_string
,
char_string
);
DBUG_ASSERT
(
hexdump_from
==
(
unsigned
long
)
hexdump_from
);
fprintf
(
file
,
"# %8.8lx %-48.48s |%s|
\n
# "
,
(
unsigned
long
)
(
hexdump_from
+
(
i
&
0xfffffff0
)),
hex_string
,
char_string
);
}
}
}
...
...
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