eeb61216de
Add MariaDBMonitor Gtid unit test
...
Tests the class with different inputs. Also fixes a bug found by the test.
2018-09-14 17:31:00 +03:00
12092d1a90
test_cycle_find.cc: Initialize the log
2018-09-12 14:23:09 +03:00
d11c78ad80
Format all sources with Uncrustify
...
Formatted all sources and manually tuned some files to make the code look
neater.
2018-09-10 13:22:49 +03:00
c447e5cf15
Uncrustify maxscale
...
See script directory for method. The script to run in the top level
MaxScale directory is called maxscale-uncrustify.sh, which uses
another script, list-src, from the same directory (so you need to set
your PATH). The uncrustify version was 0.66.
2018-09-09 22:26:19 +03:00
916b72a733
Clean up loops
...
Changed many of the iterator loops to range loops.
2018-08-22 12:22:45 +03:00
3f53eddbde
MXS-2020 Replace ss[_info]_dassert with mxb_assert[_message]
2018-08-22 11:34:59 +03:00
3576780f78
MXS-2008 Update gateway and tests to initialize maxbase
...
Update gateway and tests to initialize maxbase using
maxbase::init();
instead of initializing individual components.
2018-08-21 10:02:39 +03:00
88f1795412
MXS-2008 Move Worker and MessageQueue to maxbase
2018-08-21 10:02:39 +03:00
0afcd4b468
Fix test-program failures
...
Due to recent changes, mxs::MessageQueue::init() must be called
explicitly, if a monitor is created.
2018-06-29 10:43:49 +03:00
cc0299aee6
Update change date of 2.3
2018-06-25 10:07:52 +03:00
2f987d0b10
MXS-1845 Only select a master if current master is no longer usable
...
The purpose is to make the selected master server sticky. The master is reselected only
if the current master is no longer a valid master.
2018-06-18 11:06:58 +03:00
de37f1a5c4
Fix cycle find test
2018-06-14 10:28:10 +03:00
3f82c25c62
MXS-1845 New algorithm for finding the master server
...
Not yet used, as more is needed to replace the old code. The
algorithm is based on counting the total number of slave nodes
a server has, possibly in multiple layers and/or cycles.
2018-06-13 17:38:33 +03:00
17c9ac95bd
MXS-1845 Add unit test for the cycle find algorithm (Tarjan SCC)
...
Only a few test cases for now.
2018-06-05 16:33:51 +03:00