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
cc5b3998
Commit
cc5b3998
authored
Jun 18, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove HTON_FLUSH_AFTER_RENAME (BDB-ism, unused for years)
parent
fb8818c1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
sql/handler.h
sql/handler.h
+0
-1
sql/sql_table.cc
sql/sql_table.cc
+0
-18
No files found.
sql/handler.h
View file @
cc5b3998
...
@@ -1369,7 +1369,6 @@ handlerton *ha_default_tmp_handlerton(THD *thd);
...
@@ -1369,7 +1369,6 @@ handlerton *ha_default_tmp_handlerton(THD *thd);
#define HTON_ALTER_NOT_SUPPORTED (1 << 1) //Engine does not support alter
#define HTON_ALTER_NOT_SUPPORTED (1 << 1) //Engine does not support alter
#define HTON_CAN_RECREATE (1 << 2) //Delete all is used for truncate
#define HTON_CAN_RECREATE (1 << 2) //Delete all is used for truncate
#define HTON_HIDDEN (1 << 3) //Engine does not appear in lists
#define HTON_HIDDEN (1 << 3) //Engine does not appear in lists
#define HTON_FLUSH_AFTER_RENAME (1 << 4)
#define HTON_NOT_USER_SELECTABLE (1 << 5)
#define HTON_NOT_USER_SELECTABLE (1 << 5)
#define HTON_TEMPORARY_NOT_SUPPORTED (1 << 6) //Having temporary tables not supported
#define HTON_TEMPORARY_NOT_SUPPORTED (1 << 6) //Having temporary tables not supported
#define HTON_SUPPORT_LOG_TABLES (1 << 7) //Engine supports log tables
#define HTON_SUPPORT_LOG_TABLES (1 << 7) //Engine supports log tables
...
...
sql/sql_table.cc
View file @
cc5b3998
...
@@ -9073,24 +9073,6 @@ end_inplace:
...
@@ -9073,24 +9073,6 @@ end_inplace:
if
(
write_bin_log
(
thd
,
true
,
thd
->
query
(),
thd
->
query_length
()))
if
(
write_bin_log
(
thd
,
true
,
thd
->
query
(),
thd
->
query_length
()))
DBUG_RETURN
(
true
);
DBUG_RETURN
(
true
);
if
(
ha_check_storage_engine_flag
(
old_db_type
,
HTON_FLUSH_AFTER_RENAME
))
{
/*
For the alter table to be properly flushed to the logs, we
have to open the new table. If not, we get a problem on server
shutdown. But we do not need to attach MERGE children.
*/
TABLE
*
t_table
;
t_table
=
open_table_uncached
(
thd
,
new_db_type
,
alter_ctx
.
get_new_path
(),
alter_ctx
.
new_db
,
alter_ctx
.
new_name
,
false
,
true
);
if
(
t_table
)
intern_close_table
(
t_table
);
else
sql_print_warning
(
"Could not open table %s.%s after rename
\n
"
,
alter_ctx
.
new_db
,
alter_ctx
.
table_name
);
ha_flush_logs
(
old_db_type
);
}
table_list
->
table
=
NULL
;
// For query cache
table_list
->
table
=
NULL
;
// For query cache
query_cache_invalidate3
(
thd
,
table_list
,
false
);
query_cache_invalidate3
(
thd
,
table_list
,
false
);
...
...
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