diff options
author | Sergei Golubchik <serg@mariadb.org> | 2019-08-23 16:44:51 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2019-08-23 22:06:30 +0200 |
commit | e21408b7991c91878b963c98a7b8a14b7f528e45 (patch) | |
tree | 67435763006a5fac18d1548fc638202a7cbe81fb /include/wsrep.h | |
parent | f8018a356e2e0ef288433296f8379c7b302b37b7 (diff) | |
download | mariadb-git-e21408b7991c91878b963c98a7b8a14b7f528e45.tar.gz |
Decrease stack space usage of mysql_execute_command()
- WSREP_DEBUG called WSREP_LOG which allocated a 1K variable on stack
for each macro usage (at least gcc can't reuse the stack space).
Move this concatenation to happen compile-time, not run-time.
Diffstat (limited to 'include/wsrep.h')
-rw-r--r-- | include/wsrep.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/wsrep.h b/include/wsrep.h index fde5c5226e7..dbdb746409b 100644 --- a/include/wsrep.h +++ b/include/wsrep.h @@ -46,12 +46,6 @@ if (WSREP(thd) && !thd->lex->no_write_to_binlog \ && wsrep_to_isolation_begin(thd, db_, table_, table_list_)) goto wsrep_error_label; -#define WSREP_DEBUG(...) \ - if (wsrep_debug) WSREP_LOG(sql_print_information, ##__VA_ARGS__) -#define WSREP_INFO(...) WSREP_LOG(sql_print_information, ##__VA_ARGS__) -#define WSREP_WARN(...) WSREP_LOG(sql_print_warning, ##__VA_ARGS__) -#define WSREP_ERROR(...) WSREP_LOG(sql_print_error, ##__VA_ARGS__) - #define WSREP_SYNC_WAIT(thd_, before_) \ { if (WSREP_CLIENT(thd_) && \ wsrep_sync_wait(thd_, before_)) goto wsrep_error_label; } |