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
728588da
Commit
728588da
authored
Oct 03, 2006
by
iggy@rolltop.ignatz42.dyndns.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#19660 mysqldump --single-transaction should be with CONSISTENT SNAPSHOT
parent
1530b51d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
client/mysqldump.c
client/mysqldump.c
+3
-5
No files found.
client/mysqldump.c
View file @
728588da
...
@@ -2407,7 +2407,7 @@ static int do_reset_master(MYSQL *mysql_con)
...
@@ -2407,7 +2407,7 @@ static int do_reset_master(MYSQL *mysql_con)
}
}
static
int
start_transaction
(
MYSQL
*
mysql_con
,
my_bool
consistent_read_now
)
static
int
start_transaction
(
MYSQL
*
mysql_con
)
{
{
/*
/*
We use BEGIN for old servers. --single-transaction --master-data will fail
We use BEGIN for old servers. --single-transaction --master-data will fail
...
@@ -2422,10 +2422,8 @@ static int start_transaction(MYSQL *mysql_con, my_bool consistent_read_now)
...
@@ -2422,10 +2422,8 @@ static int start_transaction(MYSQL *mysql_con, my_bool consistent_read_now)
"SET SESSION TRANSACTION ISOLATION "
"SET SESSION TRANSACTION ISOLATION "
"LEVEL REPEATABLE READ"
)
||
"LEVEL REPEATABLE READ"
)
||
mysql_query_with_error_report
(
mysql_con
,
0
,
mysql_query_with_error_report
(
mysql_con
,
0
,
consistent_read_now
?
"START TRANSACTION "
"START TRANSACTION "
"WITH CONSISTENT SNAPSHOT"
:
"/*!40100 WITH CONSISTENT SNAPSHOT */"
));
"BEGIN"
));
}
}
...
@@ -2652,7 +2650,7 @@ int main(int argc, char **argv)
...
@@ -2652,7 +2650,7 @@ int main(int argc, char **argv)
if
((
opt_lock_all_tables
||
opt_master_data
)
&&
if
((
opt_lock_all_tables
||
opt_master_data
)
&&
do_flush_tables_read_lock
(
sock
))
do_flush_tables_read_lock
(
sock
))
goto
err
;
goto
err
;
if
(
opt_single_transaction
&&
start_transaction
(
sock
,
test
(
opt_master_data
)
))
if
(
opt_single_transaction
&&
start_transaction
(
sock
))
goto
err
;
goto
err
;
if
(
opt_delete_master_logs
&&
do_reset_master
(
sock
))
if
(
opt_delete_master_logs
&&
do_reset_master
(
sock
))
goto
err
;
goto
err
;
...
...
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