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
8056af30
Commit
8056af30
authored
Jun 22, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_innobase.cc:
Use current_thd to check if a transaction is done by a slave thread
parent
3dd3463f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
14 deletions
+10
-14
sql/ha_innobase.cc
sql/ha_innobase.cc
+10
-14
No files found.
sql/ha_innobase.cc
View file @
8056af30
...
...
@@ -587,6 +587,16 @@ innobase_commit_low(
/*================*/
trx_t
*
trx
)
/* in: transaction handle */
{
if
(
current_thd
->
slave_thread
)
{
/* Update the replication position info inside InnoDB */
trx
->
mysql_master_log_file_name
=
glob_mi
.
log_file_name
;
trx
->
mysql_master_log_pos
=
(
ib_longlong
)
(
glob_mi
.
pos
+
glob_mi
.
event_len
+
glob_mi
.
pending
);
}
trx_commit_for_mysql
(
trx
);
}
...
...
@@ -612,20 +622,6 @@ innobase_commit(
trx
=
check_trx_exists
(
thd
);
if
(
trx_handle
!=
(
void
*
)
&
innodb_dummy_stmt_trx_handle
)
{
if
(
thd
->
slave_thread
)
{
/* Update the replication position info inside
InnoDB. Note that we cannot presently do this for
CREATE TABLE etc. because MySQL does not tell us the
thd associated with those operations! */
trx
->
mysql_master_log_file_name
=
glob_mi
.
log_file_name
;
trx
->
mysql_master_log_pos
=
(
ib_longlong
)
(
glob_mi
.
pos
+
glob_mi
.
event_len
+
glob_mi
.
pending
);
}
innobase_commit_low
(
trx
);
}
...
...
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