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.
This commit is contained in:
Niclas Antti
2018-09-09 22:26:19 +03:00
parent fa7ec95069
commit c447e5cf15
849 changed files with 35002 additions and 27238 deletions

View File

@ -1,33 +1,35 @@
/**
* @file bug681.cpp - regression test for bug681 ("crash if max_slave_connections=10% and 4 or less backends are configured")
* @file bug681.cpp - regression test for bug681 ("crash if max_slave_connections=10% and 4 or less backends
*are configured")
*
* - Configure RWSplit with max_slave_connections=10%
* - check ReadConn master and ReadConn slave are alive and RWSplit is not started
*/
/*
Timofey Turenko 2015-01-05 11:33:29 UTC
try to start MaxScale with max_slave_connections=10%
Result:
Program terminated with signal 8, Arithmetic exception.
#0 0x00007ff0517fee3f in have_enough_servers (p_rses=0x7fff9ed17ed0, min_nsrv=1, router_nsrv=3, router=0x397c2b0)
at /usr/local/skysql/maxscale/server/modules/routing/readwritesplit/readwritesplit.c:4668
4668 LOGIF(LE, (skygw_log_write_flush(
Comment 1 Markus Mäkelä 2015-01-05 11:59:38 UTC
Added casts to floating point values when doing divisions.
*/
* Timofey Turenko 2015-01-05 11:33:29 UTC
* try to start MaxScale with max_slave_connections=10%
*
*
* Result:
* Program terminated with signal 8, Arithmetic exception.
#0 0x00007ff0517fee3f in have_enough_servers (p_rses=0x7fff9ed17ed0, min_nsrv=1, router_nsrv=3,
* router=0x397c2b0)
* at /usr/local/skysql/maxscale/server/modules/routing/readwritesplit/readwritesplit.c:4668
* 4668 LOGIF(LE, (skygw_log_write_flush(
* Comment 1 Markus Mäkelä 2015-01-05 11:59:38 UTC
* Added casts to floating point values when doing divisions.
*
*/
#include <iostream>
#include "testconnections.h"
#include "mariadb_func.h"
int main(int argc, char *argv[])
int main(int argc, char* argv[])
{
TestConnections * Test = new TestConnections(argc, argv);
TestConnections* Test = new TestConnections(argc, argv);
Test->set_timeout(20);
Test->maxscales->connect_maxscale(0);