diff options
author | Monty <monty@mariadb.org> | 2018-01-08 15:33:23 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-01-30 21:33:56 +0200 |
commit | f55dc7f733446a201e3b465ae03a0388d192a3ad (patch) | |
tree | 54bb6977650a907dcd069ef1b7124e61944ceabe /sql/keycaches.cc | |
parent | 18e22cb69f7d56207c80a5bf4336f2a52ff0d70f (diff) | |
download | mariadb-git-f55dc7f733446a201e3b465ae03a0388d192a3ad.tar.gz |
Change C_STRING_WITH_LEN to STRING_WITH_LEN
This preserves const str for constant strings
Other things
- A few variables where changed from LEX_STRING to LEX_CSTRING
- Incident_log_event::Incident_log_event and record_incident where
changed to take LEX_CSTRING* as an argument instead of LEX_STRING
Diffstat (limited to 'sql/keycaches.cc')
-rw-r--r-- | sql/keycaches.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/keycaches.cc b/sql/keycaches.cc index 6de775d3f2d..6bfdb34157e 100644 --- a/sql/keycaches.cc +++ b/sql/keycaches.cc @@ -100,7 +100,7 @@ void NAMED_ILIST::delete_elements(void (*free_element)(const char *name, uchar*) /* Key cache functions */ -LEX_CSTRING default_key_cache_base= {C_STRING_WITH_LEN("default")}; +LEX_CSTRING default_key_cache_base= {STRING_WITH_LEN("default")}; KEY_CACHE zero_key_cache; ///< @@nonexistent_cache.param->value_ptr() points here @@ -180,9 +180,9 @@ bool process_key_caches(process_key_cache_t func, void *param) /* Rpl_filter functions */ -LEX_STRING default_rpl_filter_base= {C_STRING_WITH_LEN("")}; +LEX_CSTRING default_rpl_filter_base= {STRING_WITH_LEN("")}; -Rpl_filter *get_rpl_filter(LEX_STRING *filter_name) +Rpl_filter *get_rpl_filter(LEX_CSTRING *filter_name) { if (!filter_name->length) filter_name= &default_rpl_filter_base; @@ -211,7 +211,7 @@ Rpl_filter *create_rpl_filter(const char *name, uint length) Rpl_filter *get_or_create_rpl_filter(const char *name, uint length) { - LEX_STRING rpl_filter_name; + LEX_CSTRING rpl_filter_name; Rpl_filter *filter; rpl_filter_name.str= (char *) name; |