Commit Graph

  • 7cdef05710 Fix issue with OK being split across multiple reads Mark Riddoch 2014-06-27 09:27:43 +01:00
  • 20637ee224 Removed unnecessary SERVER pointer from dcb.c:dcb_call_foreach(), changed declaration and call accordingly. VilhoRaatikka 2014-06-27 10:54:11 +03:00
  • edf9f0c59c Listed and described shortly max_slave_connections and server_options=slave_selection_criteria parameters. VilhoRaatikka 2014-06-27 10:50:56 +03:00
  • c13275c0e7 merge from develop MassimilianoPinto 2014-06-26 21:27:22 +02:00
  • 52646a9942 Fix compile warning MassimilianoPinto 2014-06-26 21:22:33 +02:00
  • a351a5eb09 fix compile warning MassimilianoPinto 2014-06-26 21:17:49 +02:00
  • 1f77f37fbb fix type in path in .spec Timofey Turenko 2014-06-26 21:16:43 +03:00
  • cbf196c40a Documentation for MaxAdmin - rewrite of CLI command guide Mark Riddoch 2014-06-26 17:23:33 +01:00
  • eb5912239a Documentation for MaxAdmin - rewrite of CLI command guide Mark Riddoch 2014-06-26 17:23:33 +01:00
  • f246219beb Fix compile errors and warnings MassimilianoPinto 2014-06-26 18:20:33 +02:00
  • ace2550d93 Merge branch 'develop' into MAX-111 Mark Riddoch 2014-06-26 16:52:57 +01:00
  • 031294f655 Diagnostic update Mark Riddoch 2014-06-26 16:52:10 +01:00
  • f96b762478 User interface improvements Mark Riddoch 2014-06-26 16:46:19 +01:00
  • 8808fd7e47 Some debug messages removed MassimilianoPinto 2014-06-26 17:18:53 +02:00
  • 1dbb4b1780 removed duplicated routine code MassimilianoPinto 2014-06-26 17:12:08 +02:00
  • 1a33277f72 Merge from develop MassimilianoPinto 2014-06-26 17:08:21 +02:00
  • 4d2e43a2d9 code cleanup and documentation MassimilianoPinto 2014-06-26 16:56:21 +02:00
  • 10ac2cb6e6 add /etc/init.d/maxscale to the package Timofey Turenko 2014-06-26 15:23:22 +03:00
  • d8ac0467de Added comments for SHOW SLAVE STATUS MassimilianoPinto 2014-06-26 14:14:37 +02:00
  • dbf12f6183 Added new rules for Master selection MassimilianoPinto 2014-06-25 18:38:33 +02:00
  • 5a65bc2aaa get_root_master routine available MassimilianoPinto 2014-06-25 17:19:14 +02:00
  • 22827e7c8d Merge pull request #6 from skysql/MAX-99 Vilho Raatikka 2014-06-25 18:06:22 +03:00
  • 1d1da398d4 Merge branch 'develop' into MAX-99 VilhoRaatikka 2014-06-25 17:50:29 +03:00
  • dff18bf9bb Necessary checks and macros for prepared statement support implementation. VilhoRaatikka 2014-06-25 17:37:37 +03:00
  • 7ff14e23a5 Support for prepared statement, namely support for following comands : COM_STMT_PREPARE, COM_STMT_EXECUTE, COM_STMT_SEND_LONG_DATA, COM_STMT_RESET, COM_STMT_CLOSE, SQLCOM_PREPARE, SQLCOM_EXECUTE, SQLCOM_DEALLOCATE_PREPARE (DEALLOCATE/DROP PREPARE stmt). All prepare commands are executed in every backend server currently connected. VilhoRaatikka 2014-06-25 17:15:46 +03:00
  • 2eafe15bca Added master_host update in the loop MassimilianoPinto 2014-06-25 15:51:29 +02:00
  • 2d128de85f Replaced MySQL command macros with enumerated type. Each command has prefix 'MYSQL_' otherwise they match with those listed in mariadb-5.5 mysql_com.h. VilhoRaatikka 2014-06-25 15:48:55 +03:00
  • d30ff534b9 In dcb.c:dcb_read if there is nothing anymore to read from socket, it wasn't caught anyway. Added test for that case and immediate exit in that case. VilhoRaatikka 2014-06-25 15:37:44 +03:00
  • fa08a141e4 Fix to reload dbusers Tidyup show service output Mark Riddoch 2014-06-25 13:01:32 +01:00
  • 792ae454f4 Add support for #!../maxadmin scripts Mark Riddoch 2014-06-25 10:00:59 +01:00
  • c14700fcff Added documentation to new routines MassimilianoPinto 2014-06-25 10:21:30 +02:00
  • e0596b7d72 Merge branch 'develop' into MAX-65 Mark Riddoch 2014-06-25 08:28:17 +01:00
  • 65c42b93cf If backend fails and sets session state to SESSION_STATE_STOPPING before session is in state SESSION_STATE_ROUTER_READY, sessoin.c:session_alloc overwrites the session state by SESSION_STATE_ROUTER_READY. Protected session state modification and added check before changing the state. VilhoRaatikka 2014-06-24 21:59:42 +03:00
  • c30e270768 Removed dcb->command from DCB structure as it was used for session commands but not anymore. Corrected debug assertion in dcb_final_free because DCB can be freed also when DCB is being created, that is, state is DCB_STATE_ALLOC. VilhoRaatikka 2014-06-24 21:56:15 +03:00
  • 442ac7fefb Added GWBUF type GWBUF_TYPE_SINGLE_STMT to indicate that buffer only includes single complete stmt. Added macro for checking the flag and changed existing routines as necessary. VilhoRaatikka 2014-06-24 21:51:54 +03:00
  • 619aeb4afa Query classifier can keep parse tree after the function that created it returns. Parse tree can then be queried from outside. Added skygw_query_classifier_get_stmtname which returns the name of statement, and skygw_query_classifier_free which frees mysql handle, parse tree and thread context (thd). VilhoRaatikka 2014-06-24 21:45:00 +03:00
  • a652e875b5 Support for multipacket statements Mark Riddoch 2014-06-24 17:59:29 +01:00
  • e1e172fe03 Fixed compile errors MassimilianoPinto 2014-06-24 18:37:17 +02:00
  • dfe3092dc5 Merge branch 'develop' into MAX-59 MassimilianoPinto 2014-06-24 18:21:09 +02:00
  • f09368924b Added depth level 0 for each cluster node MassimilianoPinto 2014-06-24 17:58:29 +02:00
  • 52ef3b6718 New rules for selecting Master/Slaves MassimilianoPinto 2014-06-24 15:44:14 +02:00
  • 6bfa8897cd Fix compiler warning Mark Riddoch 2014-06-24 11:51:25 +01:00
  • 584d8867bc Replication tree is now a routine MassimilianoPinto 2014-06-24 11:18:59 +02:00
  • d36100a99f Replication consistency with replication tree MassimilianoPinto 2014-06-23 13:12:26 +02:00
  • 51d47accf7 Added replication consistency routines MassimilianoPinto 2014-06-23 12:56:01 +02:00
  • d42469c6cc Merge branch 'develop' into MAX-59 MassimilianoPinto 2014-06-23 12:42:32 +02:00
  • e650930487 Cleanup up branch session on close. Mark Riddoch 2014-06-23 10:10:04 +01:00
  • 7ba64875ad master_id, depth, slaves default values MassimilianoPinto 2014-06-23 09:51:50 +02:00
  • 1c10d0ee39 Core changes to support tee filter. Mark Riddoch 2014-06-20 17:49:40 +01:00
  • 7067e43b44 Core changes to support tee filter. Mark Riddoch 2014-06-20 17:49:40 +01:00
  • 0784c2cea8 Addition of tee filter Mark Riddoch 2014-06-20 11:47:07 +01:00
  • e98b5d411e Addition of tee filter Mark Riddoch 2014-06-20 11:47:07 +01:00
  • c759767a91 Use new session entry points to get remote and user rather than dereference the DCB directly. Mark Riddoch 2014-06-19 16:07:21 +01:00
  • 8d9d51216f Addition of user and source to all filter Mark Riddoch 2014-06-19 14:02:41 +01:00
  • 058d553973 Addition of user and source to all filter Mark Riddoch 2014-06-19 14:02:41 +01:00
  • 2a1688bb3d get level 0 for the first master MassimilianoPinto 2014-06-18 18:57:09 +02:00
  • 11a85971f1 Merge branch 'develop' into MAX-65 Mark Riddoch 2014-06-18 17:47:21 +01:00
  • 2e42c9170d Merge branch 'develop' of github.com:skysql/MaxScale into develop Mark Riddoch 2014-06-18 17:46:51 +01:00
  • 4d257897d3 Merge branch 'develop' of github.com:skysql/MaxScale into develop Mark Riddoch 2014-06-18 17:45:57 +01:00
  • dc359f8e90 fix .spec Timofey Turenko 2014-06-18 18:51:50 +03:00
  • e48f4ee8fe Require libedit-devel only for CentOS 6 Timofey Turenko 2014-06-18 18:44:36 +03:00
  • df3fe9e9b2 Regex Filter Documentation Mark Riddoch 2014-06-18 15:28:09 +01:00
  • 107500f40a Regex Filter Documentation Mark Riddoch 2014-06-18 15:28:09 +01:00
  • 3def4c1c73 Merge branch 'develop' into MAX-111 Mark Riddoch 2014-06-18 12:30:00 +01:00
  • 421995af94 Disable use of libedit if it is not installed on the machine Mark Riddoch 2014-06-18 12:28:59 +01:00
  • 1b6a5efb64 merge from develop MassimilianoPinto 2014-06-18 11:51:47 +02:00
  • b2d7d28b10 fix for slave set with mariadb 10 replication MassimilianoPinto 2014-06-18 11:46:29 +02:00
  • 188a91dab2 add build-depends on libedit-devel Timofey Turenko 2014-06-17 19:38:18 +03:00
  • 6bb7aa4311 first implementation for depth of replication MassimilianoPinto 2014-06-17 18:16:45 +02:00
  • 751b81a3b6 getServerByNodeId added MassimilianoPinto 2014-06-17 18:07:30 +02:00
  • d0cae12ca5 fix build-depends in .spec Timofey Turenko 2014-06-17 17:41:29 +03:00
  • 62c5937ae1 fix build-depends in .spec Timofey Turenko 2014-06-17 17:18:40 +03:00
  • 38fd7b0844 master_id set by monitor MassimilianoPinto 2014-06-17 16:10:11 +02:00
  • e7fa80a591 Code clean up VilhoRaatikka 2014-06-17 16:15:19 +03:00
  • e0c3ef24d7 typo fix MassimilianoPinto 2014-06-17 13:05:31 +02:00
  • fe846885d5 depth and master_id fields added MassimilianoPinto 2014-06-17 13:05:03 +02:00
  • 49163a4c43 Merge branch 'develop' into MAX-11 VilhoRaatikka 2014-06-16 19:53:19 +03:00
  • 4f03c775e5 sescmd_cursor_reset didn't reset cursor's property pointer which made reset ineffective. VilhoRaatikka 2014-06-16 13:40:45 +03:00
  • 189793f992 Clean up some compiler warnings Mark Riddoch 2014-06-16 08:40:04 +01:00
  • 9f6a1061c6 Config fix Mark Riddoch 2014-06-16 08:10:34 +01:00
  • 850603171b Improvements to CLI commands and client Mark Riddoch 2014-06-16 07:57:12 +01:00
  • 70ba1f028a Fixed bug in generation of execution time in report Mark Riddoch 2014-06-15 23:03:41 +01:00
  • 0200ca4e24 Some things weren't switched off from product build. VilhoRaatikka 2014-06-16 00:31:14 +03:00
  • 5bcae64538 When protocol closes DCB it calls dcb_close instead of dcb->func.close. dcb_close then calls dcb->func.close. This is now changed to all protocols and routers. VilhoRaatikka 2014-06-15 23:44:07 +03:00
  • 8103ac6052 Merge branch 'develop' into MAX-65 Mark Riddoch 2014-06-14 12:54:08 +01:00
  • c2fa112407 Remove .swp file which was added by mistake Mark Riddoch 2014-06-13 23:42:21 +01:00
  • 719503e471 Addition of new client utility, maxadmin. Mark Riddoch 2014-06-13 23:40:07 +01:00
  • 09d20d1059 Modified dcb_call_foreach so that it doesn't hold spinlock (dcbspin) continuously because it caused deadlock when new slaves were tried to connect with. VilhoRaatikka 2014-06-13 14:52:04 +03:00
  • dfc9141a38 Whenever monitored server's state changes, a callback, router_handle_state_switch is called for each DCB in MaxScale session. The DCB referring to the server in question will be passed as parameter to backend DCB's hangup function. VilhoRaatikka 2014-06-13 13:30:50 +03:00
  • 480c842308 Improved diagnostics in filters Mark Riddoch 2014-06-13 08:50:28 +01:00
  • 966d3f3fd4 Enhancements to topfilter and qlafilter Mark Riddoch 2014-06-13 08:35:23 +01:00
  • 1868210a59 Enhancements to topfilter and qlafilter Mark Riddoch 2014-06-13 08:35:23 +01:00
  • 9eda859724 Added callback for rwsplit router which traverses through every rwsplit router session and for each rses, all backend references. Each bref is checked whether it is connected to non responsive server and if it is flagged to be waiting for response from the non-responsive backend. For matching ones, backend protocol's hangup function is called. VilhoRaatikka 2014-06-13 08:01:26 +03:00
  • 15ff1fd26a Fixed many error handling issues regading to timing and multiple threads. Added flags to those backend references which have sent something to backend which causes the backend to send results or reply back. Didn't add removal of the flag since there's currently no way to tell whether response from backend contains anything else than session command reply - which aren't counted when BREF_WAITING_RESULT is set and cleared. VilhoRaatikka 2014-06-12 23:22:51 +03:00
  • e95b6cc0d9 dcb.c, gw_utils.c, mysql_server_protocol.h, mysql_client.c : Replaced gw_read_gwbuff with dcb_read in mysql_client.c:gw_read_client_event. VilhoRaatikka 2014-06-12 19:02:47 +03:00
  • d17315b2cd Updated QLA filter to allow for regex matches and client address matches to control the statements that are logged. Mark Riddoch 2014-06-11 23:55:29 +01:00
  • 02330093cc Added test for session commands. VilhoRaatikka 2014-06-11 15:33:42 +03:00
  • 2963a8448b Implement non-blocking alternative to mutexes for read serialisation Mark Riddoch 2014-06-10 17:59:49 +01:00
  • a8def0d670 Additional error checking and documentation. Mark Riddoch 2014-06-10 11:57:48 +01:00
  • 77e1426dbf Initial upstream fitlering implementation. Mark Riddoch 2014-06-09 21:13:28 +01:00