summaryrefslogtreecommitdiff
path: root/sql/wsrep_mysqld.h
diff options
context:
space:
mode:
authorsjaakola <seppo.jaakola@iki.fi>2017-02-22 23:10:36 +0200
committerJan Lindström <jan.lindstrom@mariadb.com>2017-08-11 14:06:16 +0300
commit790a8274cd0ea471a81652aef932191660deb64b (patch)
tree84a8619783fe1bd18000b511b07e1db0fdf930df /sql/wsrep_mysqld.h
parent04c6b03c9b2155500d82ce880f3b8bea88f0c5a5 (diff)
downloadmariadb-git-790a8274cd0ea471a81652aef932191660deb64b.tar.gz
Refs: MW-360 * reverted WSREP_TO_ISOLATION macros back to original form
Diffstat (limited to 'sql/wsrep_mysqld.h')
-rw-r--r--sql/wsrep_mysqld.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/sql/wsrep_mysqld.h b/sql/wsrep_mysqld.h
index ea7e7df9e10..1cda5d23986 100644
--- a/sql/wsrep_mysqld.h
+++ b/sql/wsrep_mysqld.h
@@ -320,7 +320,7 @@ extern PSI_mutex_key key_LOCK_wsrep_slave_threads;
extern PSI_mutex_key key_LOCK_wsrep_desync;
#endif /* HAVE_PSI_INTERFACE */
struct TABLE_LIST;
-int wsrep_to_isolation_begin(THD *thd, const char * query, char *db_, char *table_,
+int wsrep_to_isolation_begin(THD *thd, char *db_, char *table_,
const TABLE_LIST* table_list);
void wsrep_to_isolation_end(THD *thd);
void wsrep_cleanup_transaction(THD *thd);
@@ -338,22 +338,4 @@ void wsrep_init_sidno(const wsrep_uuid_t&);
bool wsrep_node_is_donor();
bool wsrep_node_is_synced();
-#define WSREP_MYSQL_DB (char *)"mysql"
-#define WSREP_TO_ISOLATION_BEGIN(db_, table_, table_list_) \
- if (WSREP(thd) && wsrep_to_isolation_begin(thd, NULL, db_, table_, table_list_)) goto error;
-
-#define WSREP_TO_ISOLATION_BEGIN_QUERY(query, db_, table_, table_list_) \
- (WSREP(thd) && wsrep_to_isolation_begin(thd, query, db_, table_, table_list_))
-
-#define WSREP_TO_ISOLATION_END \
- if (WSREP(thd) || (thd && thd->wsrep_exec_mode==TOTAL_ORDER)) \
- wsrep_to_isolation_end(thd);
-
-/* Checks if lex->no_write_to_binlog is set for statements that use
- LOCAL or NO_WRITE_TO_BINLOG
-*/
-#define WSREP_TO_ISOLATION_BEGIN_WRTCHK(db_, table_, table_list_) \
- if (WSREP(thd) && !thd->lex->no_write_to_binlog \
- && wsrep_to_isolation_begin(thd, NULL, db_, table_, table_list_)) goto error;
-
#endif /* WSREP_MYSQLD_H */