Commit Graph

822 Commits (c0fdf02b7863f627c4e41380f4e32b628843fde0)

Author SHA1 Message Date
René Cannaò da43919b77 Refactoring MySQL_Session::get_pkts_from_client()
5 years ago
René Cannaò 8b5812f769 Removed dead code from MySQL_Session
5 years ago
René Cannaò f3ff10e989 Splitting MySQL_Session::get_pkts_from_client
5 years ago
René Cannaò b2e3ae4222 Splitting MySQL_Session::handler()
5 years ago
René Cannaò dd04dc3da4 Do not increment mysql counter error when there is no error
5 years ago
René Cannaò aaddb4e568 Port of #3001 to 2.1.0 , related to #3000
6 years ago
René Cannaò fdff65daea Implementation of max_transaction_idle_time
6 years ago
Valentin Rakush 2d4b0a25ca Fix QPO timeout overflow
6 years ago
René Cannaò 5fd6baba65 Removed commented code
6 years ago
René Cannaò dd017bbaf5 Fix a bug related to SET autocommit=1 filtered
6 years ago
René Cannaò 47d3420662 Change default of exit_after_SetParse
6 years ago
René Cannaò 848ddb2177 Added variable mysql-connect_timeout_client
6 years ago
Rene Cannao 41b173a83c Fixing a lot of compiler warnings
6 years ago
René Cannaò 33d8db02a6 Change the mapping logic for SESSION_TRACK_GTIDS
6 years ago
René Cannaò 6b4d576e6a Adding some internal comment
6 years ago
René Cannaò 61bca42ef3 Adding charset debugging
6 years ago
René Cannaò a0fc25fd8a Change DSS to STATE_MARIADB_GENERIC after async_change_user()
6 years ago
René Cannaò b9645b39dc
Merge branch 'v2.1.0' into v2.1.0-cherrypicks_2.0.13_2
6 years ago
René Cannaò 5ce13abc36
Merge pull request #2881 from sysown/v2.1.0-2717
6 years ago
Javier Jaramago Fernández e7b69bc269 Added extra info from 'QueryProcessor' to 'internal_session_info'
6 years ago
Javier Jaramago Fernández 4409044398 Added support for annotation 'create_new_connection' that prevents reusing backend connections
6 years ago
Javier Jaramago Fernández 9eda5a6d0a Removed 'sql_log_bin0' from 'conn.status' because it's a session variable and added 'compression'
6 years ago
René Cannaò d79ddad00b
Merge pull request #2844 from sysown/v2.1.0-cherrypicks_2.0.13
6 years ago
René Cannaò 3d74ef4828
Merge pull request #2882 from sysown/v2.1.0-2862
6 years ago
Javier Jaramago Fernández d10f519e4a Refactored 'MySQL_Session' set/get status functions
6 years ago
René Cannaò 00ce76e57e Add support for SAVEPOINT #948
6 years ago
Javier Jaramago Fernández 8fafa66336 Removed unused variables from 'MySQL_Connection()'
6 years ago
Javier Jaramago Fernández 7b82a3774a Set 'with_gtid' flag each time a GITD is going to be used
6 years ago
Javier Jaramago Fernández adaca60c1f Fixes segfault related to accesses to 'GloMyLogger' and 'GloMTH' when are already deinitialized
6 years ago
René Cannaò 416260ab53 Ignore last semicolon from SET statements #2838
6 years ago
René Cannaò 507f034a23
Merge pull request #2826 from sysown/v2.1.0-from2013-1
6 years ago
Arthur Schreiber 8ed63e8404 Reset data stream status after switching users.
6 years ago
Arthur Schreiber 32d6ba65c0 Actually set `session_track_gtids` on new backends.
6 years ago
René Cannaò 2bbd84d2c9 Support for SQLite3 plugin
6 years ago
Valentin Rakush b0d36acb2f Session variable group_concat_max_len
6 years ago
René Cannaò 23db1d7f22
Merge branch 'v2.1.0' into v2.1.0-testQP_stmt
6 years ago
René Cannaò 9acfaa211c
Merge pull request #2723 from sysown/v2.0.11-QP_stmt_2
6 years ago
René Cannaò 9998555eff Port of v2.0.11-QP_stmt_2 into v2.1.0-QP_stmt_2
6 years ago
René Cannaò 4b2107b7c3 Splitting MySQL_Session::get_pkts_from_client()
6 years ago
René Cannaò c0a3efdd7f
Merge branch 'v2.1.0' into v2.0.11-QP_stmt_2
6 years ago
René Cannaò 4bed506067 Breaking MySQL_Session::handler() in 2 main blocks
6 years ago
René Cannaò c95ad4bc03 Code cleanup
6 years ago
René Cannaò 1adceeb9d6 Merge branch 'v2.1.0_session_handler_split' into v2.1.0_session_handler_split_2
6 years ago
René Cannaò 0a78949d98
Merge branch 'v2.1.0' into v2.0.11-prometheus
6 years ago
René Cannaò 8d6b48f21d Adding new method MySQL_Session::handler_again___multiple_statuses()
6 years ago
Valentin Rakush d0acdcd5c2 Crashing often with strange new error (Error setting MYSQL_OPTION_MULTI_STATEMENTS)
6 years ago
René Cannaò 308639d0dc Renamed session_status NONE to session_status___NONE
6 years ago
René Cannaò 8083561058 Added a comment in MySQL_Session.cpp
6 years ago
val 890ad06868 Merge branch 'v2.0.11-QP_stmt_2' into v2.1.0-testQP_stmt
6 years ago
René Cannaò 543b96facf
Merge pull request #2651 from sysown/v2.0.11-aux
6 years ago
Javier Jaramago Fernández 7f8b07a0db Created new metric counters for registering 'mysql_errors'
6 years ago
René Cannaò 7b021e027a Do not cache routing metadata for COM_STMT_EXECUTE
6 years ago
Javier Jaramago Fernández a53988cc90 Removed deprecated double counters metric updates in favor of callback approach
6 years ago
René Cannaò 8cc88ce58e Migration of threads status variables as array
6 years ago
Javier Jaramago Fernández b6bca5a3ee Added metrics help and replaced metrics impl with new array based one for 'mysql_threads_handler' module
6 years ago
Javier Jaramago Fernández c48b109019 Replaced 'hostgroups_manager' prometheus metrics with new array based impl
6 years ago
Javier Jaramago Fernández c319db2c3d Added new prometheus metrics mimicking current ones
6 years ago
René Cannaò a863ec4ece
Merge pull request #2675 from sysown/v2.0.11-var2
6 years ago
René Cannaò b7834cc3d3 Fix multistatement error with SET NAMES #2655
6 years ago
René Cannaò c4b1dfb29b wsrep_sync_wait parsed via parse_variable_number()
6 years ago
René Cannaò 3454c625c2 Adding ability to parse some variables based ontheir attributes
6 years ago
René Cannaò 54ee4e9b69 Simplified the number of session statuses
6 years ago
René Cannaò d83f2974b6 on_connect_to_backend() to accept a MySQL_Connection as argument instead of a MySQL_Session
6 years ago
René Cannaò f3ba5159d6 Removed reference to "special_handling" variables
6 years ago
val 08c6622eb0 set charset command sets connection character set to empty
6 years ago
val 246a9d828a use separate function for set names verification
6 years ago
val 66788863b3 set names optimization
6 years ago
val d0d7018e34 rollback session_track_gtids
6 years ago
val ade8491f47 Re-evaluate on_connect_to_backend
6 years ago
val 6e75ac7033 do not change mysql_tracked_variables. do not use special_handling as for now
6 years ago
val abd0555852 remove is_connected_to_backend
6 years ago
val b0ca1a030f make MySQL_Variables a global variable
6 years ago
val 3e790c9083 Polishing and cleanup
6 years ago
Valentin Rakush 61c1913334 Character set handling implementation
6 years ago
René Cannaò c28deb7c7d Generalize the use of session variables
6 years ago
Valentin Rakush 0e79eb39f7 Implementation of the session variables array
6 years ago
René Cannaò 75606bb94d Simplifying MySQL_Thread::run() phase 1
6 years ago
val 07990f8a57 Proper error reporting
6 years ago
val 5d6debcb65 fix multi statement
6 years ago
val cdbf70817a Revert "Implementation of the session variables array"
6 years ago
val b1339faefd Revert "Generalize the use of session variables"
6 years ago
val eb08620181 Revert "Character set handling implementation"
6 years ago
val 8696ece34b Revert "Polishing and cleanup"
6 years ago
val dbafde2ff4 Polishing and cleanup
6 years ago
Valentin Rakush 796ea5b215 Character set handling implementation
6 years ago
René Cannaò d242771a25 Generalize the use of session variables
6 years ago
Valentin Rakush 1fb5c9cf06 Implementation of the session variables array
6 years ago
val 70b9f25937 edge case : offset==0 and limit==0
6 years ago
René Cannaò 6dc9606ac4 Update heartbeat during connections
6 years ago
val a78dbfb6b3 report mysql thread_id in case of error during query
6 years ago
René Cannaò 5a842772c4 Better handling of transactions in SQLite3
6 years ago
René Cannaò b0af4d272d Fix 2 bugs related to firewall
6 years ago
Valentin Rakush 7b7b94a20f More verbose output for failed SET statements
6 years ago
René Cannaò 3d2fd599db
Merge pull request #2469 from kirs/min-gtid
6 years ago
Kir Shatrov 3b031f3518 Prevent crash on index() returning NULL
6 years ago
Kir Shatrov 0922949b8c Support min_gtid comment
6 years ago
René Cannaò 5a346864de
Merge pull request #2449 from val214/v2.0.9-set-option
6 years ago
Valentin Rakush a9b0e6648e Return error 1290
6 years ago
Valentin Rakush b93b5f50bf MYSQL_SET_OPTION multiplexing
6 years ago
René Cannaò b8ecdaa708 Removing some comments
6 years ago
René Cannaò e9dc7a9b60 Implementation of SQLI fingerprints whitelist
6 years ago
Valentin Rakush 49181ac1bb Add host:port to unknown charset log messages
6 years ago
Valentin Rakush cfdbedeb54 unsigned int charset: add collation name in a log message
6 years ago
René Cannaò b9d155b4a5 Set variables before setting lock_hostgroup
6 years ago
René Cannaò 8954b46a02 Error log now lists the SQL injection query
6 years ago
René Cannaò e12a3b2792 Support for automatic SQL injection detection
6 years ago
René Cannaò 9afe6824ff
Merge pull request #2407 from sysown/v2.0.9-libmicrohttpd-0.9.68
6 years ago
René Cannaò 57e0b2eb2f
Merge pull request #2403 from sysown/v2.0.9-whitelist
6 years ago
René Cannaò c967bc179b Several improvements to SQLite3 Server module:
6 years ago
René Cannaò ce4a4a2464 Code cleanup and speeding compile time
6 years ago
René Cannaò 45e701b54d Code cleanup and speeding compile time
6 years ago
René Cannaò 80e92b144d [WIP] Second commit for mysql firewall whitelist
6 years ago
René Cannaò a09efe634e More verbose output if KILL fails
6 years ago
René Cannaò 364ba71002 Fix race condition on KILL CONNECTION
6 years ago
René Cannaò feccb76427 Revert "Fix race condition on KILL CONNECTION"
6 years ago
René Cannaò b959f29306 Fix race condition on KILL CONNECTION
6 years ago
René Cannaò d52a771e50 Fix memory leak when handling SET autocommit
6 years ago
René Cannaò 9502c2e7c4 Report client IP:port when setting lock_hostgroup
6 years ago
René Cannaò 288118d523 If unable to set session variable on backend, display value in error log
6 years ago
René Cannaò 3ad899c758 Avoid crash in JSON library for invalid UTF8
6 years ago
René Cannaò f2e878fda3 Readding a condition related to charset incorrectly removed
6 years ago
René Cannaò 6dbac33a62
Merge branch 'v2.0.8' into charset
6 years ago
Valentin Rakush 1e3aec3b94 Fixes after review
6 years ago
Valentin Rakush 15f121d82f handle unknown character set
6 years ago
Valentin Rakush 1008b7d0c5 unit8_t conversion
6 years ago
René Cannaò 630e66fd99 Fixing logic for SET CHARACTER SET #1692
6 years ago
Valentin Rakush b5725c44e3 set character set implementation. initial commit
7 years ago
René Cannaò 149c7c3a40 More verbose output for error 2019 #2273
7 years ago
René Cannaò e2b6a7a2c5
Merge pull request #2276 from sysown/v2.0.7-0926
7 years ago
René Cannaò 781aafb70f
Merge pull request #2274 from val214/tx_isolation
7 years ago
René Cannaò 7cc3f949b6 Apply mysql_query_rules.destination_hostgroup also when unable to parse SET statement.
7 years ago
René Cannaò a4f56291c8 Fixed crash caused by KILL QUERY and mysql-eventslog_format=2
7 years ago
Valentin Rakush 8f69091074 tx_isolation: do not duplicate tx_isolation with transaction_isolation. check mysql version.
7 years ago
Valentin Rakush 202cae4c39 set tx_isolation implementation
7 years ago
René Cannaò 86f6104e02 More verbosity on Ping timeout during ping #2265
7 years ago
Valentin Rakush 757684c6d9 [FR] Group Replication Timeout count
7 years ago
René Cannaò 84985baedc Improved the parsing of user variables
7 years ago
René Cannaò 99b4dd4bbd
Merge pull request #2243 from sysown/v2.0.7.2
7 years ago
René Cannaò aaf83eec78 Finalizing the support for more session variables
7 years ago
René Cannaò c520866058 More on functions for tracking more variables
7 years ago
René Cannaò 234eb9ba27 Fix bug #2224
7 years ago
René Cannaò 197a46ea0d More on functions for tracking more variables
7 years ago
René Cannaò 673bb96cfb Adding functions for tracking more variables
7 years ago
René Cannaò ddf4a231a3 More on adding functions for tracking variables
7 years ago
René Cannaò c06e316e8e Update CurrentQuery after adding LDAP comment
7 years ago
René Cannaò 015fc2a025 Report a clear error if LDAP authentication doesn't complete
7 years ago
René Cannaò 46606ccd01 More on adding functions for tracking variables
7 years ago
René Cannaò 46e38d4cf6 More debugging
7 years ago
René Cannaò 9971dc5b47 Adding several debug information
7 years ago
René Cannaò 57e04c63e9 Adding generic functions for tracking variables
7 years ago
René Cannaò a1f39bf784 2nd drafting tracking of various variables
7 years ago
René Cannaò 6e67c21224 Correctly set sql_mode from variable
7 years ago
René Cannaò e16fcb32a4 Reset gtid_hid for every request generating an OK packet
7 years ago
René Cannaò 9172993e4a Reset gtid_hid at the beginning of every request
7 years ago
René Cannaò 4c4380e818 Fixed a bug that prevent init_connect to work
7 years ago
René Cannaò 540a630774 Do not sent GTID in OK packets generated due to query rules
7 years ago
René Cannaò 0ef9ad832b Bug fix: improved autocommit logic
7 years ago
René Cannaò c746bf7f8a Fix invalid free
7 years ago
René Cannaò 9e81359651
Merge pull request #2185 from YYJiangLoveU/MS-branch
7 years ago
René Cannaò f3e7f03998 Implementation of COM_FIELD_LIST
7 years ago
Yiyao Jiang 3b0e2abbc4 remove the flag
7 years ago
Yiyao Jiang 63af8f3f52 Add azure_enabled
7 years ago
Yiyao Jiang a3b14fcb57 Add serverhost when connecting to MySQL Servers
7 years ago
René Cannaò c3177788de Do not close backend connection for error 1317
7 years ago
René Cannaò df703ee19c Set CLIENT_MULTI_STATEMENTS based on COM_SET_OPTION #2175
7 years ago
Yiyao Jiang 6211bc3b87 remove the blank line accidentally entered
7 years ago
René Cannaò 27c00478cc
Merge pull request #2164 from sysown/v2.0.6-2096
7 years ago
René Cannaò 37ee761b77 Disable SSLv3 #2169
7 years ago
René Cannaò 12d9ae1b6b Fix bug #2096
7 years ago
René Cannaò 4c1f4a8d82 Enhancements on AWS Aurora module
7 years ago
René Cannaò ce757db70d
Merge pull request #2156 from sysown/v2.0.6-hg_locked
7 years ago
René Cannaò 4b3c9eeb2a Partial revert of previous commit
7 years ago
René Cannaò 48207548c9 Lock on backend connection if SET statement is used in multi-statements command #2130
7 years ago
René Cannaò 2ba37e08ef
Merge pull request #2149 from sysown/v2.0.6-capability_tracking
7 years ago
René Cannaò 590a24c8c6 Tracking `CLIENT_MULTI_RESULTS`
7 years ago
René Cannaò 274ca31cbe Fix multiple OK in multistatement
7 years ago
René Cannaò 945ddc7a1f Set locked hostgroup for multistatements with SET
7 years ago
René Cannaò 8c4b70a557 Added capability to lock hostgroup
7 years ago
Yiyao Jiang a132b34f23 add servername when connecting MySQL
7 years ago
René Cannaò f2f3935fcd drafting locked hostgroup
7 years ago
René Cannaò 0708808bd4 Disable throttling for any client other than SESSION_MYSQL #2147
7 years ago
René Cannaò 0434295e6b Fix multiple OK in multistatement
7 years ago
René Cannaò 30b4b34c81 Use 32 bits for capabilities flags
7 years ago
René Cannaò 6691a867fa Fix issues/FR #2120 , #2121 and #2125
7 years ago
René Cannaò 334cbdba44 Merge branch 'v2.0.6-query-json' into v2.0.6
7 years ago
René Cannaò 230590bdc8 drafting hostgroup locking
7 years ago
René Cannaò 64c5bd9b08 Fix bug #2133
7 years ago
René Cannaò d65f7016b3 Fix bug #2131
7 years ago
René Cannaò 0831740e45 Several enhancements on Query logger
7 years ago
René Cannaò 37d79ad23a Fixed compiler warning: ISO C++ forbids converting a string constant to char pointer
7 years ago
René Cannaò 9ed7094cfe Implemeting of more locking in SELECT statements
7 years ago
René Cannaò 15aa536a6e
Merge pull request #2078 from sysown/v2.0.4-1886
7 years ago
René Cannaò 786bac6362 Adding more internal info in JSON format #2055
7 years ago
René Cannaò 0546bc3160
Merge pull request #2070 from sysown/v2.0.5-2055
7 years ago
René Cannaò 9604e9fbfb Adding age of sessions and connections #2055
7 years ago
René Cannaò 15aa025db3
Merge pull request #2067 from sysown/v2.0.5-1183
7 years ago
René Cannaò a6897eaa0d Adding more internal info in JSON format #2055
7 years ago
René Cannaò 7ea33a1312 Completing initial implementation of Audit module
7 years ago
René Cannaò 79dd412b48 Fix bug with stored procedures #2059
7 years ago
René Cannaò 9e2c1fdda1 Draft implementation of audit log
7 years ago