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
d6e1e47b
Commit
d6e1e47b
authored
Jun 08, 2004
by
jplindst@t41.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function innobase_store_binlog_offset_and_flush_log requested by Guilhem
to ha_innodb.cc and ha_innodb.h
parent
500874b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
sql/ha_innodb.cc
sql/ha_innodb.cc
+33
-0
No files found.
BitKeeper/etc/logging_ok
View file @
d6e1e47b
...
...
@@ -78,6 +78,7 @@ jcole@sarvik.tfr.cafe.ee
jcole@tetra.spaceapes.com
joreland@mysql.com
jorge@linux.jorge.mysql.com
jplindst@t41.(none)
kaj@work.mysql.com
konstantin@mysql.com
kostja@oak.local
...
...
sql/ha_innodb.cc
View file @
d6e1e47b
...
...
@@ -66,6 +66,7 @@ extern "C" {
#include "../innobase/include/trx0roll.h"
#include "../innobase/include/trx0trx.h"
#include "../innobase/include/trx0sys.h"
#include "../innobase/include/mtr0mtr.h"
#include "../innobase/include/row0ins.h"
#include "../innobase/include/row0mysql.h"
#include "../innobase/include/row0sel.h"
...
...
@@ -5182,4 +5183,36 @@ ha_innobase::get_auto_increment()
return
(
nr
);
}
/***********************************************************************
This function stores binlog offset and flushes logs */
void
innobase_store_binlog_offset_and_flush_log
(
/*=============================*/
char
*
binlog_name
,
/* in: binlog name */
longlong
offset
/* in: binlog offset */
)
{
mtr_t
mtr
;
assert
(
binlog_name
!=
NULL
);
/* Start a mini-transaction */
mtr_start_noninline
(
&
mtr
);
/* Update the latest MySQL binlog name and offset info
in trx sys header */
trx_sys_update_mysql_binlog_offset
(
binlog_name
,
offset
,
TRX_SYS_MYSQL_LOG_INFO
,
&
mtr
);
/* Commits the mini-transaction */
mtr_commit
(
&
mtr
);
/* Syncronous flush of the log buffer to disk */
log_buffer_flush_to_disk
();
}
#endif
/* HAVE_INNOBASE_DB */
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