mariadb/storage
Marko Mäkelä 2c39f69d34 MDEV-22203: WSREP_ON is unnecessarily expensive WITH_WSREP=OFF
If the server is compiled WITH_WSREP=OFF, we should avoid evaluating
conditions on a global variable that is constant.

WSREP_ON_: Renamed from WSREP_ON. Defined only WITH_WSREP=ON.

WSREP_ON: Defined as unlikely(WSREP_ON_).

wsrep_on(): Defined as WSREP_ON && wsrep_service->wsrep_on_func().

The reason why we have wsrep_on() at all is that the macro WSREP(thd)
depends on the definition of THD, and that is intentionally an opaque
data type for InnoDB. So, we cannot avoid invoking wsrep_on(), but
we can evaluate the less expensive condition WSREP_ON before calling
the function.
2020-04-24 15:25:39 +03:00
..
archive
blackhole
cassandra
connect Merge 10.3 into 10.4 2020-03-30 14:50:23 +03:00
csv
example
federated
federatedx MDEV-21887: federatedx crashes on SELECT ... INTO query in select_handler code 2020-03-26 15:01:44 +03:00
heap
innobase MDEV-22203: WSREP_ON is unnecessarily expensive WITH_WSREP=OFF 2020-04-24 15:25:39 +03:00
maria Fixed memory leak if Aria didn't start 2020-04-23 14:24:52 +03:00
mroonga Merge 10.3 into 10.4 2020-04-16 12:12:26 +03:00
myisam Merge 10.3 into 10.4 2020-04-22 18:18:51 +03:00
myisammrg Merge 10.3 into 10.4 2020-03-16 16:24:36 +02:00
oqgraph Removed double records_in_range calls from multi_range_read_info_const 2020-03-17 02:16:48 +02:00
perfschema Cleanup my_atomic.h includes 2020-03-21 20:11:44 +04:00
rocksdb Merge 10.3 into 10.4 2020-04-16 12:12:26 +03:00
sequence
sphinx
spider MDEV-21884 MariaDB with Spider crashes on a query 2020-04-23 00:03:54 +09:00
test_sql_discovery
tokudb Merge 10.3 into 10.4 2020-04-16 12:12:26 +03:00