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
2fbd3a2e
Commit
2fbd3a2e
authored
Jul 02, 2007
by
tnurnberg@sin.intern.azundris.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#22540: Incorrect value in column End_log_pos of SHOW BINLOG EVENTS using InnoDB
minor fixes to appease pushbuild.
parent
990c8767
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
mysql-test/r/binlog.result
mysql-test/r/binlog.result
+2
-2
mysql-test/t/binlog.test
mysql-test/t/binlog.test
+1
-0
sql/log.cc
sql/log.cc
+2
-2
No files found.
mysql-test/r/binlog.result
View file @
2fbd3a2e
...
...
@@ -256,7 +256,7 @@ reset master;
create table t1 (a int) engine=innodb;
show binlog events from 0;
Log_name Pos Event_type Server_id End_log_pos Info
master-bin.000001 4 Format_desc 1 98 Server ver
: 5.0.46-debug-log
, Binlog ver: 4
master-bin.000001 4 Format_desc 1 98 Server ver
sion
, Binlog ver: 4
master-bin.000001 98 Query 1 198 use `test`; create table t1 (a int) engine=innodb
master-bin.000001 198 Query 1 266 use `test`; BEGIN
master-bin.000001 266 Query 1 357 use `test`; insert into t1 values( 400 )
...
...
@@ -659,7 +659,7 @@ master-bin.000001 36202 Query 1 36291 use `test`; insert into t1 values( 4 )
master-bin.000001 36291 Query 1 36380 use `test`; insert into t1 values( 3 )
master-bin.000001 36380 Query 1 36469 use `test`; insert into t1 values( 2 )
master-bin.000001 36469 Query 1 36558 use `test`; insert into t1 values( 1 )
master-bin.000001 36558 Xid 1 36585 COMMIT /*
xid=186
*/
master-bin.000001 36558 Xid 1 36585 COMMIT /*
XID
*/
master-bin.000001 36585 Rotate 1 36629 master-bin.000002;pos=4
drop table t1;
set global binlog_cache_size=@bcs;
...
...
mysql-test/t/binlog.test
View file @
2fbd3a2e
...
...
@@ -159,6 +159,7 @@ while ($1)
commit
;
enable_query_log
;
--
replace_regex
/
\
/
\
*
xid
=.*
\
*
\
//\/* XID *\// /table_id: [0-9]+/table_id: #/ /Server ver: [^,]*,/Server version,/
show
binlog
events
from
0
;
drop
table
t1
;
...
...
sql/log.cc
View file @
2fbd3a2e
...
...
@@ -1951,14 +1951,14 @@ bool MYSQL_LOG::write(THD *thd, IO_CACHE *cache, Log_event *commit_event)
{
/* we've got a full event-header, and it came in one piece */
char
*
log_pos
=
(
char
*
)
cache
->
read_pos
+
hdr_offs
+
LOG_POS_OFFSET
;
uchar
*
log_pos
=
(
u
char
*
)
cache
->
read_pos
+
hdr_offs
+
LOG_POS_OFFSET
;
/* fix end_log_pos */
val
=
uint4korr
(
log_pos
)
+
group
;
int4store
(
log_pos
,
val
);
/* next event header at ... */
log_pos
=
(
char
*
)
cache
->
read_pos
+
hdr_offs
+
EVENT_LEN_OFFSET
;
log_pos
=
(
u
char
*
)
cache
->
read_pos
+
hdr_offs
+
EVENT_LEN_OFFSET
;
hdr_offs
+=
uint4korr
(
log_pos
);
}
...
...
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