summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-09-28 11:59:28 +0300
committerMonty <monty@mariadb.org>2017-09-28 11:59:28 +0300
commit5a0cd753be0d48022db257ddcc7327341b12c1af (patch)
treed6e9c554049d3119bc3f0da6956258387b0a6a85
parent8d006b9b124555298063d94d1473c9c881f2db1f (diff)
downloadmariadb-git-5a0cd753be0d48022db257ddcc7327341b12c1af.tar.gz
Added missing test if table is transactional or not in Aria
- The line was accidently removed by dd8474b1dc556d0ea9491d1908a2d1237818e8c1 - The effect of the missing test was just a few extra malloc when creating internal temporary tables. Nothing critical, but better got get fixed.
-rw-r--r--storage/maria/ma_open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/maria/ma_open.c b/storage/maria/ma_open.c
index 5c5e41be1f8..c1fdd52357f 100644
--- a/storage/maria/ma_open.c
+++ b/storage/maria/ma_open.c
@@ -918,6 +918,7 @@ MARIA_HA *maria_open(const char *name, int mode, uint open_flags)
if (internal_table)
set_if_smaller(share->base.max_data_file_length,
max_data_file_length);
+ if (share->now_transactional)
{
/* Setup initial state that is visible for all */
MARIA_STATE_HISTORY_CLOSED *history;