diff options
| author | Daniele Sciascia <daniele.sciascia@galeracluster.com> | 2022-02-15 14:36:02 +0100 |
|---|---|---|
| committer | Jan Lindström <jan.lindstrom@mariadb.com> | 2022-08-31 11:05:23 +0300 |
| commit | 2917bd0d2cf417cbf9c83b64ae2b7806bdb2f34e (patch) | |
| tree | 1fb14efc031ed19f2637b98c0be6bac1457fcb10 /sql/sql_view.cc | |
| parent | cf1a944f5b5496434ebe2c19e0f436e1bdd94871 (diff) | |
| download | mariadb-git-2917bd0d2cf417cbf9c83b64ae2b7806bdb2f34e.tar.gz | |
Reduce compilation dependencies on wsrep_mysqld.h
Making changes to wsrep_mysqld.h causes large parts of server code to
be recompiled. The reason is that wsrep_mysqld.h is included by
sql_class.h, even tough very little of wsrep_mysqld.h is needed in
sql_class.h. This commit introduces a new header file, wsrep_on.h,
which is meant to be included from sql_class.h, and contains only
macros and variable declarations used to determine whether wsrep is
enabled.
Also, header wsrep.h should only contain definitions that are also
used outside of sql/. Therefore, move WSREP_TO_ISOLATION* and
WSREP_SYNC_WAIT macros to wsrep_mysqld.h.
Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
Diffstat (limited to 'sql/sql_view.cc')
| -rw-r--r-- | sql/sql_view.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_view.cc b/sql/sql_view.cc index ff2a7518162..093f12f5fb5 100644 --- a/sql/sql_view.cc +++ b/sql/sql_view.cc @@ -37,6 +37,7 @@ #include "sql_derived.h" #include "sql_cte.h" // check_dependencies_in_with_clauses() #include "opt_trace.h" +#include "wsrep_mysqld.h" #define MD5_BUFF_LENGTH 33 |
