summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index dc40e34bc3d..84d73458753 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -3770,7 +3770,10 @@ int
handler::ha_create_handler_files(const char *name, const char *old_name,
int action_flag, HA_CREATE_INFO *info)
{
- mark_trx_read_write();
+ if (info && !(info->options & HA_LEX_CREATE_TMP_TABLE))
+ {
+ mark_trx_read_write();
+ }
return create_handler_files(name, old_name, action_flag, info);
}