MassimilianoPinto
a82d18f517
get wildcard loop tidy up
...
get wildcard loop tidy up
2014-10-16 18:11:29 +02:00
MassimilianoPinto
0769deed7f
MySQL Authentication with DBname
...
MySQL Authentication with DBname
2014-10-15 17:26:46 +02:00
MassimilianoPinto
0ae522f1bd
Memory leak in getUsers()
...
Memory leak in getUsers() when no users are loaded due to an error
2014-10-14 12:53:31 +02:00
MassimilianoPinto
6813a0381d
fprintf removed
...
fprintf removed
2014-10-13 10:52:34 +02:00
MassimilianoPinto
d829c323b9
Header history update
...
Header history update
2014-10-13 09:55:42 +02:00
MassimilianoPinto
ee54310a73
Implementation of db auth
...
Implementation of db auth
2014-10-13 09:50:55 +02:00
MassimilianoPinto
dbe078f358
MySQL Authentication with wildcards in hosts
...
MySQL Authentication:
Added support for wildcards in hosts:
a.b.c.%
a.b.%.%
a.%.%.%
2014-10-03 17:26:41 +02:00
MassimilianoPinto
48489234be
Merge branch 'develop' into MAX-268
2014-10-03 16:28:38 +02:00
Markus Makela
b0683d9b4d
Updated the licensing year from 2013 to 2013-2014
2014-10-01 14:37:12 +03:00
Markus Makela
f4e591e382
Changed 'SkySQL Gateway' to 'MariaDB Corporation MaxScale'
2014-09-30 13:15:03 +03:00
Markus Makela
c344231f80
Renamed all occurences of SkySQL to MariaDB Corporation
2014-09-30 13:02:10 +03:00
MassimilianoPinto
5f6d04e7db
Match for Class C,B,A in hosts with %
...
Match for Class C,B,A in hosts with %
2014-09-29 16:50:21 +02:00
MassimilianoPinto
42d0b3c743
Fix for % detection
...
Fix for % detection
2014-09-29 13:02:06 +02:00
MassimilianoPinto
2268bf89aa
Fixed wrong chars
...
Fixed wrong chars
2014-09-29 12:41:15 +02:00
MassimilianoPinto
76320c056b
Match Class C,B,A addresses
...
Match Class C,B,A addresses
2014-09-29 12:08:10 +02:00
MassimilianoPinto
a11303bd58
wildcard in host printed via show dbusers
...
wildcard in host printed via show dbusers
2014-09-29 10:31:04 +02:00
MassimilianoPinto
717f24ce48
Added first support for user@x.y.z.%
...
Added first support for user@x.y.z.%
2014-09-25 13:08:12 +02:00
MassimilianoPinto
4e88833d3e
Fixed memory leak in getUsers bug 439
...
Fixed memory leak in getUsers bug 439
2014-09-15 15:53:09 +02:00
Markus Makela
cc5922b218
Merge branch 'MAX-237' into Z3
2014-09-02 16:58:20 +03:00
VilhoRaatikka
0fed5c2c5b
Fix to bug #510 , http://bugs.skysql.com/show_bug.cgi?id=510 , made every MaxScale thread to call mysql_thread_init() before entering poll_waitevents. Also main thread does this before starting services. Removed all calls to mysql_thread_init() and to mysql_thread_end() from elsewhere than from poll.c:poll_waitevents and from gateway.c:main
...
skygw_utils.cc: replace_literal: fixed memory leak
2014-09-01 19:37:31 +03:00
Markus Makela
164d8b1e32
Fixed various memory leaks
...
dbuser.c: key.user value was never freed
skygw_utils.cc: replace_literal values were not always freed
2014-09-01 13:40:52 +03:00
VilhoRaatikka
7e6cb7afc2
Snapshot of failure tolerance changes.
...
Added a lot of logging to error, trace and message logs which should help the user to handle errors which can't be automatically resolved, like attempt to use nonexisting database.
2014-06-06 23:32:04 +03:00
VilhoRaatikka
70115d35c9
Fix to bug #438 http://bugs.skysql.com/show_bug.cgi?id=438
...
Fixed some compiler warnings, added header includes, return values etc.
2014-05-27 17:07:41 +03:00
MassimilianoPinto
378d00983d
merge from branch 'cenh'
...
merge from branch ‘cenh’
2014-05-26 12:15:34 +02:00
Mark Riddoch
1d08b0100f
Initial binlog prototype
...
Supports pulling binlogs from the master, caching to a local file and relaying to a slave.
Only tested with a single slave and a single MaxScale thread.
2014-05-13 16:06:05 +01:00
VilhoRaatikka
8be4aba223
Added new state to SESSION: SESSION_STATE_STOPPING, which is set in protocol module before calling closeSession (router). THe new state tells that session is closing and DCBs included may not be polling anymore.
...
Fixed some crash scenarios.
2014-05-08 23:17:35 +03:00
MassimilianoPinto
40b7ce6d43
Buffer for users' table SHA1 hash is set to zero before using it and strncopy used instead of snprintf
...
Buffer for users' table SHA1 hash is set to zero before using it and
strncopy used instead of snprintf
2014-03-27 17:19:10 +01:00
MassimilianoPinto
c6cfc99ee3
At service startup service->rate_limit.last is set back to USERS_REFRESH_TIME
...
At service startup service->rate_limit.last is set back to
USERS_REFRESH_TIME
This allows reloading users’ table as soon as possible
Fixed mysql_users_alloc instead of users_alloc in replace_mysql_users()
and added MYSQL_USER_MAXLEN where missing
2014-02-28 18:26:24 +01:00
MassimilianoPinto
92d94e16ac
Removed duplicated code
...
Removed duplicated code
2014-02-28 17:55:57 +01:00
MassimilianoPinto
bc31ac2ed3
Branch updated from develop
...
Branch updated from develop
2014-02-28 17:36:48 +01:00
MassimilianoPinto
1f533c64ff
Files updated for user@host mysql auth
...
Files updated for user@host mysql auth
2014-02-28 15:47:11 +01:00
MassimilianoPinto
22947109b4
Removed extra header file inclusion
...
Removed extra header file inclusion
2014-02-28 15:07:01 +01:00
MassimilianoPinto
a2285e9e00
Compile errors fixed
...
Compile errors fixed
2014-02-28 12:56:09 +01:00
MassimilianoPinto
45543eceed
Merge branch 'fix-127' into feature-MAX-2
...
Conflicts:
server/core/dbusers.c
server/core/service.c
server/core/users.c
server/include/dbusers.h
server/include/users.h
server/modules/protocol/mysql_client.c
server/modules/protocol/mysql_common.c
2014-02-28 12:28:14 +01:00
MassimilianoPinto
78799e505f
Fix for bug 127 and 345 as part of it
...
Fix for bug 127 and 345 as part of it
http://bugs.skysql.com/show_bug.cgi?id=127
http://bugs.skysql.com/show_bug.cgi?id=345
2014-02-28 11:29:55 +01:00
MassimilianoPinto
17b328cb9a
Added USERS_HASHTABLE_SIZE
...
Added USERS_HASHTABLE_SIZE, default size is 52
2014-02-21 17:08:27 +01:00
MassimilianoPinto
086399bb20
uh_cmpfun: resolved error in NULL check
...
uh_cmpfun: resolved error in NULL check
2014-02-14 18:00:19 +01:00
MassimilianoPinto
6a12e99001
MySQL authentication with user@host
...
MySQL authentication with user@host: user, host and pass word are
loaded from backend servers.
Host is currently handled as IPv4 address
2014-02-14 15:56:48 +01:00
MassimilianoPinto
e4876b3abb
Enable/disable root user in services
...
Added support for enable/disable root user, this is currently used in
MySQL authentication
2014-02-06 15:58:37 +01:00
vraatikka
d403018fd9
Surrounded every log writing command with LOGIF macro, which tests if the given logfile id matches with those enabled. The comparison is done against local variable and expensive function call is avoided.
2013-12-12 16:14:33 +02:00
vraatikka
701830f0ab
Logging related (mostly) sanity checks and fixes.
...
- Checked argument types and counts
- Removed trailing line feeds
- Removed thread ids from error logs (they are used in trace / debug log
- Added some state information to dcbs
- Added prefix 'Error' or 'Fatal' to error logs.
- Switches all error logs to use flushing log write.
2013-09-30 11:14:36 +03:00
Massimiliano Pinto
8a9d178785
Fixed bug for invalid memory access in row[1]+1 when row[1] is ""
2013-08-08 18:40:02 +02:00
vraatikka
cae4d38a7e
Removed unnecessary argument from log manager commands because it is not used and it is always NULL.
2013-08-04 23:30:47 +03:00
vraatikka
b2099947b4
Changed mysterious log message.
2013-07-30 23:08:31 +03:00
Timofey Turenko
a7c82310f9
moving files to /server to make merge possible
2013-07-28 05:31:11 +00:00