summaryrefslogtreecommitdiff
path: root/sql/session_tracker.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@mariadb.org>2017-06-19 06:34:38 +0300
committerSergei Golubchik <serg@mariadb.org>2017-08-24 01:05:49 +0200
commit458d5ed8aabc60e6540de8fb9e94fb0577612fa1 (patch)
tree7271d205dcf6b735bbb395cf1bdfd2fc84333955 /sql/session_tracker.cc
parenta70f7aad55fbb3b6a9a3cdeb8a83bd50df3f00e2 (diff)
downloadmariadb-git-458d5ed8aabc60e6540de8fb9e94fb0577612fa1.tar.gz
Lots of small cleanups
- Simplified use_trans_cache() to return at once if is_transactional is set - Indentation and spelling errors fixed - Don't call signal_update() if update_binlog_end_pos() is called as the function already calls signal_update() - Removed not used function wait_for_update_bin_log(), which would cause errors if ever used. - Simplified handler::clone() by always allocating 'ref' in ha_open(). To do this I added an optional MEM_ROOT argument to ha_open() to be used when allocating 'ref' - Changed arguments to get_system_var() from LEX_CSTRING to LEX_CSTRING* - Added THD as argument to create_select_for_variable(). Changed also char* argument to LEX_CSTRING to avoid strlen() call. - Change calls to append() to use LEX_CSTRING
Diffstat (limited to 'sql/session_tracker.cc')
-rw-r--r--sql/session_tracker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/session_tracker.cc b/sql/session_tracker.cc
index 61680fb17f6..8d64fb29332 100644
--- a/sql/session_tracker.cc
+++ b/sql/session_tracker.cc
@@ -1216,7 +1216,7 @@ bool Transaction_state_tracker::store(THD *thd, String *buf)
tx_isolation_typelib as it hyphenates its items.
*/
buf->append(STRING_WITH_LEN("SET TRANSACTION ISOLATION LEVEL "));
- buf->append(isol[tx_isol_level - 1].str, isol[tx_isol_level - 1].length);
+ buf->append(&isol[tx_isol_level - 1]);
buf->append(STRING_WITH_LEN("; "));
}