counterpoint
5515c71988
Reapply MXS-504 changes subsequent to optimisation changes. Merge SSL processing into non-SSL processing so far as possible, correct usage of OpenSSL, simplify where possible.
2016-01-13 10:08:37 +00:00
Markus Makela
b01e8b2eec
Added utils library initialization function and improved replace_quoted
...
Currently the initialization function only prepares PCRE2 patterns for use.
Added the call to the new utils_init() function to MaxScale and all relevant
tests.
The replace_quoted now uses a shared PCRE2 pattern which should remove some
of the overhead of the function.
2016-01-11 17:04:39 +02:00
counterpoint
23ebd581dc
Fix mistake in optimise-core branch, dcb.c.
2016-01-08 14:11:50 +00:00
counterpoint
bd02835139
Fiddle around with spaces.
2016-01-08 13:47:34 +00:00
counterpoint
fb5fdb17db
Switch bitmask_clear to be locking and offer bitmask_clear_without_spinlock for non-locking version, in response to review comments. Revert poll.c to use bitmask_clear (with locking) and amend dcb.c to use the non-locking version and to take advantage of the return of an indication of whether the whole bitmask is then clearn.
2016-01-08 13:47:34 +00:00
counterpoint
4461cd9398
Streamline modutil_get_complete_packets code. No external impact.
2016-01-08 13:47:34 +00:00
counterpoint
aa79e61aac
Various optimisations of bitmask processing. External change is that bitmask_clear() does not apply a spinlock, so must be called with exclusive access to the bitmask. This affects the call in shutdown processing in poll management. The call from DCB processing is safe because zombie processing has exclusive access to DCBs.
2016-01-08 13:47:34 +00:00
counterpoint
78b363aec7
Enhance buffer handling by changing gwbuf_free to free the whole list of buffers (although it could contain only one buffer). Add gwbuf_count to give number of buffers in a buffer list (for convenience in debugging). Add gwbuf_alloc_and_load to simplify putting data into a new buffer.
2016-01-08 13:47:34 +00:00
Markus Makela
4ef89d213b
MXS-463: Filepaths are now properly formatted for printing
...
The various global directory setter functions now process the input they receive
and remove redundant and trailing forward slashes from the directory paths.
2016-01-04 18:40:00 +02:00
Markus Makela
080a9ebc9d
PCRE2 is now statically linked
...
Since the PCRE2 library was always going to be a part of MaxScale, there was
no real reason to have it as a shared library apart from smaller binaries.
2015-12-29 10:09:38 +02:00
Markus Makela
2b6b8f87db
Fix to MXS-183: Fixed wrong pointer being used for logging error message
...
The wrong pointer was used when logging an error message about a bad parameter.
2015-12-23 12:46:08 +02:00
Markus Makela
8d969aadd1
Changed default number of threads and added auto
value.
...
Changed default number of threads to 1 instead of autoconfigured value and
added a new `auto` variable which enables autoconfiguration of thread count.
The number of threads used when autoconfiguratio fails was changed from 4 to 1.
The default value of using N threads where N is the number of CPU cores was
not optimal as the possibility of rescheduling was higher the more utility
threads there were. Due to this, N-1 is deemed to be the better autoconfigured
value for thread count.
2015-12-15 15:08:43 +02:00
Markus Makela
78b5777d6e
Fixes to Coverity defects
...
Few fixes to possible use of freed memory and resource leaks.
2015-12-15 13:13:53 +02:00
Johan Wikman
edb3f3efd5
Fix coverity report of config.c
...
If pointer uninitialized there can be free of unallocated memory.
2015-12-08 10:28:31 +02:00
Johan Wikman
e3e8a59555
Allow hangup event also when EPOLLRDHUP is not available.
...
When generating a fake hangup event, EPOLLRDHUP is used if available,
otherwise EPOLLHUP. process_pollq(int) does the same thing both in the
case of EPOLLRDHUP and EPOLLHUP, so it seems this should work.
2015-12-08 10:14:10 +02:00
Johan Wikman
a71cab166b
Fix coverity report of gwbitmask.c
...
Buffer overrun. A byte is needed for the terminating null.
2015-12-08 09:33:04 +02:00
Johan Wikman
dbc321df9b
Fix coverity report of externcmd.c
...
Buffer overwrite.
2015-12-08 09:32:10 +02:00
Johan Wikman
6870d77acb
Fix set_user prototype.
2015-12-07 14:14:42 +02:00
Markus Makela
f62ff4c551
Fixed spelling mistake in usage output.
...
Path was spelled as apth.
2015-12-04 17:47:14 +02:00
counterpoint
d054cb1595
Correct logic errors in bitmask_set and extend initial/increment size to reduce likelihood of any risk of realloc failure.
2015-12-01 15:16:12 +00:00
Johan Wikman
74bb291961
Reindent server/core/monitor.c
2015-12-01 09:40:07 +02:00
Johan Wikman
b2dd24ada3
Reindent server/core/utils.c
2015-12-01 09:32:31 +02:00
Johan Wikman
fbecf128dd
Reindent server/core/users.c
2015-12-01 09:29:52 +02:00
Johan Wikman
8bbc3e8086
Reindent server/core/thread.c
2015-12-01 09:29:03 +02:00
Johan Wikman
a95be21266
Reindent of server/core/spinlock.c
2015-12-01 09:28:19 +02:00
Johan Wikman
15df33a93f
Reindent server/core/session.c
2015-12-01 09:26:26 +02:00
Johan Wikman
8601068dc2
Reindent server/core/service.c
2015-11-30 21:25:10 +02:00
Johan Wikman
ed06d4f14c
Reindent server/core/server.c
2015-11-30 19:47:29 +02:00
Johan Wikman
0aa38cad4c
Reindented server/core/resultset.c
2015-11-30 18:58:43 +02:00
Johan Wikman
6c401b9085
Reindent server/core/poll.c
2015-11-30 18:57:19 +02:00
Johan Wikman
c0615408aa
Reindented server/core/modutil.c
2015-11-30 18:53:42 +02:00
Johan Wikman
17eb80072f
Reindent server/core/secrets.c
2015-11-30 18:48:14 +02:00
Johan Wikman
233f50f3e6
Reindent server/core/random_jkiss.c
2015-11-30 16:04:18 +02:00
Johan Wikman
72dd159f98
Reindented server/core/memlog.c
2015-11-30 15:18:51 +02:00
Johan Wikman
60fb05ea40
Reindented server/core/load_utils.c
2015-11-30 15:17:36 +02:00
Johan Wikman
3189a47fc5
Reindented server/core/housekeeper.c
2015-11-30 15:16:44 +02:00
Johan Wikman
486f724dc1
Reindented server/core/hint.c
2015-11-30 14:10:15 +02:00
Johan Wikman
255a5b53c1
Reindented server/core/hashtable.c
2015-11-30 13:54:46 +02:00
Johan Wikman
26d1cf0c1f
Reindented server/core/gw_utils.c
2015-11-30 13:53:52 +02:00
Johan Wikman
d2aebe2bf0
Reindented server/core/gwdirs.c
2015-11-30 13:42:44 +02:00
Johan Wikman
9482ccb8c6
Reindented server/core/gwbitmask.c
2015-11-30 13:41:32 +02:00
Johan Wikman
ecb5ae528c
Reindented server/core/gateway.c
2015-11-30 13:40:56 +02:00
Johan Wikman
20c4a0aa67
Reindented server/core/filter.c
2015-11-30 13:40:11 +02:00
Johan Wikman
bd94d8967a
Reindented server/core/externcmd.[c|h]
...
Reindented server/core/externcmd.[c|h] and added copyright
message.
2015-11-30 12:42:49 +02:00
Johan Wikman
2afe60dd0e
Reindent server/core/dcb.c
2015-11-30 12:42:13 +02:00
Johan Wikman
17760bb3e6
Reindent server/core/buffer.c
2015-11-30 12:38:53 +02:00
Markus Makela
73e2d9950c
Changed tabs to spaces in dbusers.c
...
Some tabs were missed when formatting dbuser.c
2015-11-30 12:31:47 +02:00
Markus Makela
275580d6a8
Formatted dbusers.c according to the style guide
...
Fixed indentation, missing/misaligned brackets and made sure line length is
kept as close to 80 characters as possible.
2015-11-30 11:50:37 +02:00
Johan Wikman
f6e8662933
Reindent server/core/adminusers.c
2015-11-30 10:56:38 +02:00
Johan Wikman
6f737d9484
Reindent server/core/atomic.c
2015-11-30 10:56:38 +02:00