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
fb0145c5
Commit
fb0145c5
authored
Jan 09, 2006
by
mats@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#15923 (Test ps_7ndb cause master crash):
Always log statements "DELETE FROM x" statement-based.
parent
e46dab62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
sql/sql_delete.cc
sql/sql_delete.cc
+7
-3
No files found.
sql/sql_delete.cc
View file @
fb0145c5
...
@@ -79,6 +79,10 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
...
@@ -79,6 +79,10 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
!
(
table
->
triggers
&&
table
->
triggers
->
has_delete_triggers
()))
!
(
table
->
triggers
&&
table
->
triggers
->
has_delete_triggers
()))
{
{
ha_rows
const
maybe_deleted
=
table
->
file
->
records
;
ha_rows
const
maybe_deleted
=
table
->
file
->
records
;
/*
If all rows shall be deleted, we always log this statement-based
(see [binlog], below), so we set this flag and test it below.
*/
ha_delete_all_rows
=
1
;
ha_delete_all_rows
=
1
;
if
(
!
(
error
=
table
->
file
->
delete_all_rows
()))
if
(
!
(
error
=
table
->
file
->
delete_all_rows
()))
{
{
...
@@ -315,9 +319,9 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
...
@@ -315,9 +319,9 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
thd
->
clear_error
();
thd
->
clear_error
();
/*
/*
If 'handler::delete_all_rows()' was called, we replicat
e
[binlog]: If 'handler::delete_all_rows()' was called, w
e
statement-based; otherwise, 'ha_delete_row()' was used to
replicate statement-based; otherwise, 'ha_delete_row()' was
delete specific rows which we might log row-based.
used to
delete specific rows which we might log row-based.
*/
*/
THD
::
enum_binlog_query_type
const
THD
::
enum_binlog_query_type
const
query_type
(
ha_delete_all_rows
?
query_type
(
ha_delete_all_rows
?
...
...
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