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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
cb5de276
Commit
cb5de276
authored
Aug 02, 2013
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge
parents
d845bcc3
5c49041b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
1 deletion
+7
-1
sql/rpl_gtid.cc
sql/rpl_gtid.cc
+2
-0
sql/sql_class.cc
sql/sql_class.cc
+1
-1
sql/table.cc
sql/table.cc
+2
-0
sql/table.h
sql/table.h
+2
-0
No files found.
sql/rpl_gtid.cc
View file @
cb5de276
...
...
@@ -210,6 +210,7 @@ rpl_slave_state::truncate_state_table(THD *thd)
{
table
=
tlist
.
table
;
table
->
no_replicate
=
1
;
table
->
s
->
is_gtid_slave_pos
=
TRUE
;
// TEMPORARY CODE
err
=
table
->
file
->
ha_truncate
();
if
(
err
)
...
...
@@ -346,6 +347,7 @@ rpl_slave_state::record_gtid(THD *thd, const rpl_gtid *gtid, uint64 sub_id,
goto
end
;
table
->
no_replicate
=
1
;
table
->
s
->
is_gtid_slave_pos
=
TRUE
;
// TEMPORARY CODE
if
(
!
in_transaction
)
thd
->
variables
.
option_bits
&=
~
(
ulonglong
)(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
);
...
...
sql/sql_class.cc
View file @
cb5de276
...
...
@@ -5001,7 +5001,7 @@ int THD::decide_logging_format(TABLE_LIST *tables)
DBUG_PRINT
(
"info"
,
(
"table: %s; ha_table_flags: 0x%llx"
,
table
->
table_name
,
flags
));
if
(
table
->
table
->
no_replicate
)
if
(
table
->
table
->
no_replicate
&&
!
table
->
table
->
s
->
is_gtid_slave_pos
)
{
/*
The statement uses a table that is not replicated.
...
...
sql/table.cc
View file @
cb5de276
...
...
@@ -315,6 +315,8 @@ TABLE_SHARE *alloc_table_share(const char *db, const char *table_name,
strmov
(
share
->
path
.
str
,
path
);
share
->
normalized_path
.
str
=
share
->
path
.
str
;
share
->
normalized_path
.
length
=
path_length
;
/* TEMPORARY FIX: if true, this means this is mysql.gtid_slave_pos table */
share
->
is_gtid_slave_pos
=
FALSE
;
share
->
table_category
=
get_table_category
(
&
share
->
db
,
&
share
->
table_name
);
share
->
set_refresh_version
();
share
->
open_errno
=
ENOENT
;
...
...
sql/table.h
View file @
cb5de276
...
...
@@ -644,6 +644,8 @@ struct TABLE_SHARE
LEX_STRING
normalized_path
;
/* unpack_filename(path) */
LEX_STRING
connect_string
;
bool
is_gtid_slave_pos
;
/*
Set of keys in use, implemented as a Bitmap.
Excludes keys disabled by ALTER TABLE ... DISABLE KEYS.
...
...
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