summaryrefslogtreecommitdiff
path: root/storage/xtradb/include
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-09-27 10:22:00 +0200
committerSergei Golubchik <serg@mariadb.org>2017-09-27 10:22:14 +0200
commitf7628ca3c203ea7642a3abe14bd205012f8d4ec5 (patch)
tree9dc36dfd68ab779347d27e022a3f38a0b7147754 /storage/xtradb/include
parent7dc1815d5c5cd14f8a49ae47e9b22a849c43ad74 (diff)
downloadmariadb-git-f7628ca3c203ea7642a3abe14bd205012f8d4ec5.tar.gz
cleanup: remove useless "inline" keywords
avoid a function call for a commonly used one-liner. followup for 0627929f626
Diffstat (limited to 'storage/xtradb/include')
-rw-r--r--storage/xtradb/include/lock0lock.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/storage/xtradb/include/lock0lock.h b/storage/xtradb/include/lock0lock.h
index 5f8e7b1c878..5aff67db0ee 100644
--- a/storage/xtradb/include/lock0lock.h
+++ b/storage/xtradb/include/lock0lock.h
@@ -1028,14 +1028,8 @@ Get lock mode and table/index name
std::string
lock_get_info(
const lock_t*);
-#ifdef WITH_WSREP
-/*******************************************************************//**
-@return whether wsrep_on is true on trx->mysql_thd*/
-bool
-wsrep_on_trx(const trx_t* trx);
-
-#endif /* WITH_WSREP */
+#define wsrep_on_trx(trx) ((trx)->mysql_thd && wsrep_on((trx)->mysql_thd))
#ifndef UNIV_NONINL
#include "lock0lock.ic"