e7abc53b70
MXS-2304 Clean up configuration serialization
...
The parameters are now written in the order they appear in the module
parameter definitions. Also enabled a previously disabled part in
server unit test.
2019-03-12 12:51:23 +02:00
c2459c420d
MXS-2304 Rename fields of CONFIG_CONTEXT
...
Added m_-prefix.
2019-03-04 12:27:36 +02:00
3fa4a85a1e
MXS-2304 Use values instead of pointers in CONFIG_CONTEXT
...
Simplifies ctor/dtor.
2019-02-22 16:39:45 +02:00
5828c93112
MXS-2304 Convert static config parameter methods to non-static
...
Parameter handling changed in several places.
2019-02-22 15:17:55 +02:00
9fbaafea91
MXS-2304 Remove additional module parameter classes
...
Equivalent functionality is now in the basic config parameter class.
2019-02-19 13:52:44 +02:00
25a53a649a
MXS-2304 Remove config_get_param()
...
Replaced with other functions. Also removed password deprecation check.
2019-02-15 10:48:19 +02:00
35e17d9878
Disable server config serialization test
...
The config parameter ordering depends on which end of the linked list the
parameters are added. The test should be re-enabled once parameter handling
has been refactored.
2019-02-14 15:39:37 +02:00
1c647f3753
MXS-2220 Move most remaining functions inside class
...
Most of the ones still remaining outside are special cases.
Also, removed locking from status manipulation functions as it
has not been required for quite some time.
2019-01-08 15:15:34 +02:00
d5c78eb31f
MXS-2220 Move more server functions inside class
2019-01-08 15:12:47 +02:00
ca9c52944b
MXS-2220 Use std::string for protocol and authenticator fields
2019-01-03 12:13:15 +02:00
40485d746c
MXS-2220 Change server name to constant string
2019-01-03 12:13:15 +02:00
569c66fa28
MXS-2220 Store server parameters in stl containers
...
The custom parameters are now protected from concurrent access.
2018-12-18 12:34:06 +02:00
6209d737e9
MXS-2220 server_alloc returns internal type
...
Also adds default initializers to SERVER fields.
2018-12-14 10:31:57 +02:00
86574c16fb
Return std::string in server_status()
2018-12-10 15:55:07 +02:00
c0c9a9858d
MXS-2197 Rename maxscale/log.h to maxscale/log.hh
...
In files either include maxscale/log.hh or remove include entirelly
as maxscale/ccdefs.hh includes it.
2018-12-10 12:58:17 +02:00
d9ae298102
MXS-2205 Combine maxscale/server.h with maxscale/server.hh
...
The server-struct is still used in several .h-files.
2018-12-03 16:47:27 +02: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
e260d493fd
Disallow duplicate server parameters
...
By replacing server_add_parameter and server_update_parameter with a
single server_set_parameter function, duplication of parameters is
prevented.
2018-08-29 11:23:00 +03:00
3f53eddbde
MXS-2020 Replace ss[_info]_dassert with mxb_assert[_message]
2018-08-22 11:34:59 +03:00
cf0aeed516
MXS-2014 Rename log_manager.h to log.h
...
There's nothing resembling a manager anymore.
2018-08-17 10:59:37 +03:00
83afcc0388
MXS-2013 Remove pointless defines
2018-08-15 09:29:28 +03:00
5a306aa20a
MXS-2005: Use log manager only after initialization
...
The log manager functions must not be used before it is initialized.
2018-08-14 14:57:34 +03:00
70fa300fe1
Remove unnecessary mxs_log_flush_sync calls
...
The calls were unnecessary in the context where they were made.
2018-08-13 10:28:02 +03:00
4c7a5017bc
MXS-1929: Create internal server representation
...
The server now has an internal C++ version that extends the public one.
2018-08-06 21:20:29 +03:00
4e8ac8dd4f
Fix explicit server allocation
...
The test cases allocated servers in a way that doesn't comfortably suit
the way the servers are now allocated. Adding a helper C++ class to load
module defaults makes it easier to do explicit server initialization in
tests.
The binlogrouter was also fixed in this commit as it uses servers much
like a test would use.
2018-07-17 11:52:21 +03:00
cc0299aee6
Update change date of 2.3
2018-06-25 10:07:52 +03:00
880db1353a
Merge branch '2.2' into develop
2018-06-07 14:39:16 +03:00
82a95bfe2d
MXS-1709 Fix memory leaks causing test_server to fail
2018-06-06 22:36:10 +03:00
12035289f4
Remove server authenticator options
...
Was unused. A warning is printed if the parameter is defined. Any value is ignored.
2018-05-08 14:18:00 +03:00
658329b648
Merge branch '2.2' into develop
2018-05-03 10:00:44 +03:00
612b4e1a32
MXS-1847: Fix server_get_parameter
...
The function now takes an output buffer as a parameter. This prevents race
conditions by copying the parameter value into a local buffer.
2018-05-03 09:50:52 +03:00
5d010ff712
Cleanup SERVER struct
...
Removed one unused field. Rearranged others, clarified comments.
2018-04-27 10:48:56 +03:00
e377b30803
Name core tests consistently
...
Now, given a concept xyz,
* the main test file is called test_xyz.cc
* the executable is called test_xyz, and
* the ctest test is called text_xyz.
2017-11-15 14:04:00 +01:00
f152c118cb
Name core tests consistently
...
Now, given a concept xyz,
* the main test file is called test_xyz.cc
* the executable is called test_xyz, and
* the ctest test is called text_xyz.
2017-11-10 14:45:54 +02:00