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
36f03084
Commit
36f03084
authored
Aug 08, 2006
by
heikki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant check_trx_exists() and ut_a() from r701,
as suggested by Marko
parent
4528e783
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
handler/ha_innodb.cc
handler/ha_innodb.cc
+1
-7
No files found.
handler/ha_innodb.cc
View file @
36f03084
...
@@ -5023,18 +5023,12 @@ ha_innobase::delete_all_rows(void)
...
@@ -5023,18 +5023,12 @@ ha_innobase::delete_all_rows(void)
}
}
/* Get the transaction associated with the current thd, or create one
/* Get the transaction associated with the current thd, or create one
if not yet created */
if not yet created, and update prebuilt->trx */
trx
=
check_trx_exists
(
thd
);
/* Update prebuilt->trx */
update_thd
(
current_thd
);
update_thd
(
current_thd
);
/* Truncate the table in InnoDB */
/* Truncate the table in InnoDB */
ut_a
(
prebuilt
->
trx
==
(
trx_t
*
)
current_thd
->
ha_data
[
innobase_hton
.
slot
]);
error
=
row_truncate_table_for_mysql
(
prebuilt
->
table
,
trx
);
error
=
row_truncate_table_for_mysql
(
prebuilt
->
table
,
trx
);
if
(
error
==
DB_ERROR
)
{
if
(
error
==
DB_ERROR
)
{
/* Cannot truncate; resort to ha_innobase::delete_row() */
/* Cannot truncate; resort to ha_innobase::delete_row() */
...
...
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