Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling variables from MySQL_Variables #2894

Closed
wants to merge 115 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
115 commits
Select commit Hold shift + click to select a range
91d56c9
Added signal handler installation when running in the foreground
pravus Apr 3, 2020
3347f69
Fix pxc_maint_mode failback when writer_is_also_reader=2
Apr 14, 2020
299096d
Fix shunning reader when node goes to MAINTENANCE
Apr 15, 2020
646e927
transaction_isolation test
Apr 26, 2020
f923607
reset hash value
Apr 27, 2020
5c6c81d
Merge pull request #2636 from pravus/v2.0.11
renecannao Apr 27, 2020
ef6826b
fix for galera set writer
Apr 28, 2020
c9c53a1
Merge pull request #2671 from sysown/v2.0.11-galera-pxc-maint-mode
renecannao Apr 28, 2020
db60c6d
Merge pull request #2673 from sysown/v2.0.11-shunning-reader
renecannao Apr 28, 2020
2f5f90c
Merge pull request #2706 from sysown/v2.0.11-galera-set-writer
renecannao Apr 28, 2020
f2937c5
Merge pull request #2701 from sysown/v2.0.11-test_tx_isolation
renecannao Apr 28, 2020
a15873e
tap cleanup
Apr 27, 2020
8ad1358
Fix PS large result test case
Apr 29, 2020
77b74ef
fix build
Apr 29, 2020
feb136b
Merge pull request #2704 from sysown/v2.0.11-tap-cleanup
alpes214 Apr 29, 2020
9cbabdf
add workdir as environment variable
Apr 29, 2020
5df6821
wait untill replication is over
Apr 29, 2020
6a6e6e1
workdir initialization
Apr 30, 2020
d699fef
reconfigure mysql_servers and mysql_query_rules for this test
Apr 30, 2020
c7cad10
2.0.11 build changes and adding gnutls dep
pondix Apr 30, 2020
6270992
Adding service proxysql-initial
pondix Apr 30, 2020
0a3f97a
Adding `--idle-threads` as new default
pondix Apr 30, 2020
504da77
Updating readme regarding --initial
pondix Apr 30, 2020
971c15e
Adding package fixes for libgnutls deps
pondix May 1, 2020
b46df6a
Update README.md
May 1, 2020
91d52de
Fix issue 2727: Error setting MYSQL_OPTION_MULTI_STATEMENTS
May 4, 2020
fc8d443
Switching to version v2.0.12
renecannao May 4, 2020
94c3fb8
LDAP plugin was incorrectly removed
renecannao May 4, 2020
b6debd3
Merge pull request #2715 from sysown/v2.0.11-tap-workdir
renecannao May 4, 2020
80d0b35
Merge pull request #2736 from sysown/v2.0.11-fix-multi-2
renecannao May 4, 2020
f56a942
Session variable group_concat_max_len
May 5, 2020
dba0d9b
Remove config test from TAP
May 5, 2020
d1032d1
Merge pull request #2746 from sysown/v2.0.12-tap-rm-config
renecannao May 5, 2020
6bca353
PROXYSQLTEST automation for query rules fast routing
May 6, 2020
0561430
Merge pull request #2753 from sysown/v2.0.12-test-fast-routing
renecannao May 6, 2020
b3beb35
generate regexp for mysql variables
May 7, 2020
0b3dc1b
Fix QPO timeout overflow
May 8, 2020
7d261d1
Check if 'GTID_Server_Data' is available before trying to access 'act…
JavierJF May 8, 2020
4fd3719
Fix set global variables error
May 8, 2020
be39aa2
Check GIT_VERSION
May 11, 2020
e50b7ae
Add debug target to TAP tests Makefile
May 11, 2020
4c29b3c
Merge pull request #2764 from sysown/v2.0.12-2763
renecannao May 11, 2020
a2c889d
Merge pull request #2771 from sysown/v2.0.12-git-version
renecannao May 11, 2020
1bc534c
Merge pull request #2770 from sysown/v2.0.12-tap-debug
renecannao May 11, 2020
c518638
Merge pull request #2767 from sysown/v2.0.12-global-vars
renecannao May 11, 2020
772d8e3
Merge pull request #2745 from sysown/v2.0.12-group-concat
renecannao May 11, 2020
e668cc8
Merge pull request #2761 from sysown/v2.0.12-kill-query
renecannao May 11, 2020
77059a1
Fixes #2793: Update capabilities and max_allowed properly in case of …
JavierJF May 14, 2020
8e5f0ff
Fixes #1493: Update 'pkt_sid' in case of compressed connection
JavierJF May 14, 2020
dd80303
Added helper function for simplifying executing a external command
JavierJF May 14, 2020
d8db416
Added two new regression tests for fixes for #2793 and #1493
JavierJF May 14, 2020
0910c2c
Multiple improvements on regression tests
JavierJF May 14, 2020
d242707
Removed unnecessary comment from test file
JavierJF May 14, 2020
fb27971
Improved helper function to avoid stalling when max PIPE size is exce…
JavierJF May 15, 2020
c8b9981
Changed 'mysql client' command parameter name for tests
JavierJF May 15, 2020
1276c26
Improved tests auxiliary variables definition and replaced hardcoded …
JavierJF May 15, 2020
17fa5ce
sysown/proxysql#2796: Fix systemctl start proxysql-initial and associ…
techwolf359 May 15, 2020
c566652
Merge pull request #2794 from sysown/v2.0.12-1493
renecannao May 17, 2020
58a909a
Adding forgotten 6.7 entry for packaging
pondix May 17, 2020
8fed1b1
Reset data stream status after switching users.
arthurschreiber May 20, 2020
88f61f8
Actually set `session_track_gtids` on new backends.
arthurschreiber May 20, 2020
f02efa2
Change version to 2.0.13
renecannao May 20, 2020
da7f49d
Rewrite and formatting change to issue template
ggunson May 20, 2020
db652f7
Fix cache size calculation integer overflow
mknapphrt May 21, 2020
a6bc53f
Removed define USE_MYSRVC_ARRAY
renecannao May 23, 2020
d182637
Add the same spacing convention of #2698
renecannao May 23, 2020
b24f259
Add the same spacing convention of #2698
renecannao May 24, 2020
ea2d08b
Merge pull request #2814 from ggunson/patch-1
renecannao May 24, 2020
c1d9d78
Merge pull request #2816 from mknapphrt/cache_int_overflow
renecannao May 24, 2020
92e031b
Merge pull request #2813 from arthurschreiber/arthur/fix-default-trac…
renecannao May 24, 2020
71db13f
Merge pull request #2811 from arthurschreiber/arthur/fix-connection-a…
renecannao May 24, 2020
8f9ad8b
Revert "Add the same spacing convention of #2698"
renecannao May 24, 2020
853bef0
Revert "Add the same spacing convention of #2698"
renecannao May 24, 2020
7826783
Fixing some indentation
renecannao May 24, 2020
bb78570
Merge pull request #2823 from sysown/v2.0.13-review2698
renecannao May 25, 2020
f68484f
Add support for SAVEPOINT #948
renecannao May 26, 2020
4bc42be
Reverse mysql-enforce_autocommit_on_reads from set_testing-t
renecannao May 26, 2020
097862b
Disable routing in savepoint-948-t test
renecannao May 27, 2020
11751b6
Make the comparison on savepoint less strict #948
renecannao May 27, 2020
06e04fc
Remove extra debugging
renecannao May 27, 2020
4266d3c
fix unquoted table name leading to sql errors
noother May 28, 2020
ba80d84
Merge pull request #2829 from sysown/v2.0.13-948
renecannao May 29, 2020
aca39d1
Ignore last semicolon from SET statements #2838
renecannao May 29, 2020
6ba5f28
Edits on set_testing-t.cpp
renecannao May 6, 2020
207bd49
Count as passed the tests intentionally skipped on set_testing-t
renecannao May 6, 2020
eefcce2
Remove autocommit handling from set_testing
renecannao May 6, 2020
42ae011
Use skip() instead of ok() in set_testing-t.cpp
renecannao May 6, 2020
c1354f8
set_testing do not connect to admin at all
renecannao May 29, 2020
2721003
Merge pull request #2836 from noother/fix-unquoted-table-name
renecannao May 29, 2020
2b7e9ae
Merge pull request #2839 from sysown/v2.0.13-2838
renecannao May 29, 2020
6f11ea6
Merge pull request #2842 from sysown/v2.0.13-set_testing
renecannao May 29, 2020
094cd08
Fix crashes related to accesses to worker threads during initializati…
JavierJF May 31, 2020
e64885f
Fixes segfault related to accesses to 'GloMyLogger' and 'GloMTH' when…
JavierJF May 30, 2020
26842b8
Prevent crash if CHARACTER_SET_CONNECTION is not initialized yet #2863
renecannao Jun 7, 2020
e90ec3d
Merge pull request #2852 from sysown/v2.0.13-2850
renecannao Jun 7, 2020
6cca5fe
Merge pull request #2847 from sysown/v2.0.13-2834
renecannao Jun 7, 2020
6fe9e4d
Updating gitignore in 2.0
renecannao Jun 7, 2020
767ff40
Merge branch 'v2.0.13' of https://github.com/sysown/proxysql into v2.…
renecannao Jun 7, 2020
7b19598
Merge pull request #2865 from sysown/v2.0.13-2863
renecannao Jun 7, 2020
ce8fbbc
Disabling variables from MySQL_Variables
renecannao Jun 8, 2020
bf4c757
Various bug fixes related to deprecated mysql-default_ variables
renecannao Jun 9, 2020
bfc2ba8
Minor commit to speed up test. To revert later
renecannao Jun 9, 2020
92f3c8f
Tune mysql-default_collation_connection if mysql-default_charset is c…
renecannao Jun 9, 2020
93f9787
2nd minor commit to speed up test. To revert later
renecannao Jun 9, 2020
097c9a7
3rd minor commit to speed up test. To revert later
renecannao Jun 9, 2020
62fa7e5
Attempt to fix some valgrind errors
renecannao Jun 9, 2020
7c002cc
Revert "Attempt to fix some valgrind errors"
renecannao Jun 9, 2020
32b6e36
Disable some valgrind warning related to RE2
renecannao Jun 9, 2020
ca03263
Disable some valgrind warning related to RE2
renecannao Jun 10, 2020
f8e9377
Modify validate_charset to ignore unset variables
renecannao Jun 10, 2020
2e64f48
Revert "3rd minor commit to speed up test. To revert later"
renecannao Jun 10, 2020
0d745a0
Revert "2nd minor commit to speed up test. To revert later"
renecannao Jun 10, 2020
f81a338
Revert "Minor commit to speed up test. To revert later"
renecannao Jun 10, 2020
27f842b
Adding set_testing_multi to support multiple users
renecannao Jun 14, 2020
57d465a
set_testing_multi doesn't check sql_log_bin
renecannao Jun 14, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
This is the place for paid support and community users to report a **reproducible bug** in ProxySQL, suggest enhancements or make feature requests. This also includes documentation errors and/or missing documentation.
This is the place to report a **reproducible bug**, **documentation error** or **feature request** for ProxySQL.

* Remember, this is the place for fixing and improving ProxySQL rather than the place to get free support.
* If you do not have a paid support contract please try https://groups.google.com/forum/#!forum/proxysql. Due to the high volume of requests, we are unable to always provide timely support for community users.
Support questions will not be answered here. For community support, use the Google forum: https://groups.google.com/forum/#!forum/proxysql
* Note that due to time constraints ProxySQL engineers may be slow to respond to forum posts
* For information on paid support contracts: https://proxysql.com/services/support/

If you are submitting a reproducible bug report, please provide:
[ ] A clear description of your issue
[ ] The version of OS and ProxySQL
[ ] Every step to reproduce the issue
[ ] The FULL error log (not just the last few lines)
[ ] If it is a crashing bug, please check here: https://github.com/sysown/proxysql/wiki/How-to-report-a-crash-bug
- [ ] A clear description of the issue
- [ ] ProxySQL version
- [ ] OS version
- [ ] The steps to reproduce the issue
- [ ] The **full** ProxySQL error log (default location: `/var/lib/proxysql/proxysql.log`)

If the above is not provided, the issue is likely to be closed.
If this is a crashing bug, please also include:
- [ ] The package used to install ProxySQL
- [ ] The compressed proxysql binary
- [ ] The compressed core dump (Note: if you're worried it may contain sensitive data, please contact us for information on sharing it securely: https://proxysql.com/contact-us/)

Please use markdown to format code or SQL: https://guides.github.com/features/mastering-markdown/
If the above information is not provided, this issue is likely to be closed.

Please use markdown to format any code or SQL: https://guides.github.com/features/mastering-markdown/

Thank you!
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,6 @@ heaptrack.*

#tap tests
*-t

#prometheus in 1.4
deps/prometheus-cpp/prometheus-cpp-0.9.0/
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
ifndef GIT_VERSION
GIT_VERSION := $(shell git describe --long)
ifndef GIT_VERSION
$(error GIT_VERSION is not set)
endif
endif

O0=-O0
O2=-O2
O1=-O1
Expand All @@ -11,7 +18,7 @@ DEBUG=${ALL_DEBUG}
#export OPTZ
#export EXTRALINK
export MAKE
export CURVER?=2.0.10
export CURVER?=2.0.13
ifneq (,$(wildcard /etc/os-release))
DISTRO := $(shell gawk -F= '/^NAME/{print $$2}' /etc/os-release)
else
Expand Down Expand Up @@ -157,7 +164,7 @@ clean:
cd src && ${MAKE} clean
cd test/tap && ${MAKE} clean

packages: centos7 centos7-dbg centos7-clickhouse centos8 centos8-dbg centos8-clickhouse ubuntu14 ubuntu14-dbg ubuntu16 ubuntu16-dbg ubuntu16-clickhouse ubuntu18 ubuntu18-dbg ubuntu18-clickhouse debian8 debian8-dbg debian9 debian9-dbg debian9-clickhouse debian10 debian10-dbg debian10-clickhouse fedora24 fedora24-dbg fedora24-clickhouse fedora27 fedora27-dbg fedora27-clickhouse fedora28 fedora28-dbg fedora28-clickhouse
packages: centos6.7 centos6.7-dbg centos7 centos7-dbg centos7-clickhouse centos8 centos8-dbg centos8-clickhouse ubuntu14 ubuntu14-dbg ubuntu16 ubuntu16-dbg ubuntu16-clickhouse ubuntu18 ubuntu18-dbg ubuntu18-clickhouse debian8 debian8-dbg debian9 debian9-dbg debian9-clickhouse debian10 debian10-dbg debian10-clickhouse fedora24 fedora24-dbg fedora24-clickhouse fedora27 fedora27-dbg fedora27-clickhouse fedora28 fedora28-dbg fedora28-clickhouse
.PHONY: packages

centos5: binaries/proxysql-${CURVER}-1-centos5.x86_64.rpm
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a><img src="https://proxysql.com/assets/images/sm-share-default.png" alt="ProxySQL"></a>
<a><img src="https://i0.wp.com/proxysql.com/wp-content/uploads/2020/04/ProxySQL-Colour-Logo.png?fit=800%2C278&ssl=1" alt="ProxySQL"></a>

Introduction
============
Expand Down Expand Up @@ -143,7 +143,15 @@ Admin> proxysql restart

#### Reinitializing ProxySQL from the config file (after first startup the DB file is used instead of the config file):
```bash
# If you are using the init script run:
/etc/init.d/proxysql initial
# or
service proxysql initial

# If you are using the systemd unit file run:
systemctl start proxysql-initial
# or
service proxysql-initial start
```

### Upgrades
Expand Down
81 changes: 0 additions & 81 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,5 @@
version: "2.0"
services:
centos5_build:
image: proxysql/packaging:build-centos5
volumes:
- ./docker/images/proxysql/rhel-compliant/rpmmacros/:/root/
- ./docker/images/proxysql/rhel-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- MAKE
- MAKEOPT
- CURVER
- PKG_RELEASE=centos5
command:
- /opt/entrypoint/entrypoint.bash
centos5_dbg_build:
image: proxysql/packaging:build-centos5
volumes:
- ./docker/images/proxysql/rhel-compliant/rpmmacros/:/root/
- ./docker/images/proxysql/rhel-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- MAKE
- MAKEOPT
- CURVER
- PKG_RELEASE=dbg-centos5
- PROXYSQL_BUILD_TYPE=debug
command:
- /opt/entrypoint/entrypoint.bash
centos67_build:
image: proxysql/packaging:build-centos6.7
volumes:
Expand Down Expand Up @@ -261,33 +234,6 @@ services:
- PROXYSQL_BUILD_TYPE=clickhouse
command:
- /opt/entrypoint/entrypoint.bash
debian7_build:
image: proxysql/packaging:build-debian7
volumes:
- ./docker/images/proxysql/deb-compliant/pre-systemd/ctl/:/root/ctl/
- ./docker/images/proxysql/deb-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- MAKE
- MAKEOPT
- CURVER
- PKG_RELEASE=debian7
command:
- /opt/entrypoint/entrypoint.bash
debian7_dbg_build:
image: proxysql/packaging:build-debian7
volumes:
- ./docker/images/proxysql/deb-compliant/pre-systemd/ctl/:/root/ctl/
- ./docker/images/proxysql/deb-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- MAKE
- MAKEOPT
- CURVER
- PKG_RELEASE=dbg-debian7
- PROXYSQL_BUILD_TYPE=debug
command:
- /opt/entrypoint/entrypoint.bash
debian8_build:
image: proxysql/packaging:build-debian8
volumes:
Expand Down Expand Up @@ -438,33 +384,6 @@ services:
- PROXYSQL_BUILD_TYPE=clickhouse
command:
- /opt/entrypoint/entrypoint.bash
ubuntu12_build:
image: proxysql/packaging:build-ubuntu12
volumes:
- ./docker/images/proxysql/deb-compliant/pre-systemd/ctl/:/root/ctl/
- ./docker/images/proxysql/deb-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- MAKE
- MAKEOPT
- CURVER
- PKG_RELEASE=ubuntu12
command:
- /opt/entrypoint/entrypoint.bash
ubuntu12_dbg_build:
image: proxysql/packaging:build-ubuntu12
volumes:
- ./docker/images/proxysql/deb-compliant/pre-systemd/ctl/:/root/ctl/
- ./docker/images/proxysql/deb-compliant/entrypoint/:/opt/entrypoint/
- ./:/opt/proxysql/
environment:
- MAKE
- MAKEOPT
- CURVER
- PKG_RELEASE=dbg-ubuntu12
- PROXYSQL_BUILD_TYPE=debug
command:
- /opt/entrypoint/entrypoint.bash
ubuntu14_build:
image: proxysql/packaging:build-ubuntu14
volumes:
Expand Down
6 changes: 4 additions & 2 deletions docker/images/proxysql/deb-compliant/ctl/proxysql.ctl
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
Section: misc
Priority: optional
Homepage: http://www.proxysql.com
Homepage: https://proxysql.com
Standards-Version: 3.9.2

Package: proxysql
Version: PKG_VERSION_CURVER
Maintainer: Rene Cannao <rene.cannao@gmail.com>
Maintainer: ProxySQL LLC <info@proxysql.com>
Architecture: amd64
Depends: libgnutls28 | libgnutls-deb0-28 | libgnutls30
# Changelog: CHANGELOG.md
# Readme: README.md
Files: proxysql /usr/bin/
etc/proxysql.cnf /
etc/logrotate.d/proxysql /etc/logrotate.d/
systemd/system/proxysql-initial.service /lib/
systemd/system/proxysql.service /lib/
tools/proxysql_galera_checker.sh /usr/share/proxysql/
tools/proxysql_galera_writer.pl /usr/share/proxysql/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
Section: misc
Priority: optional
Homepage: http://www.proxysql.com
Homepage: https://proxysql.com
Standards-Version: 3.9.2

Package: proxysql
Version: PKG_VERSION_CURVER
Maintainer: Rene Cannao <rene.cannao@gmail.com>
Maintainer: ProxySQL LLC <info@proxysql.com>
Architecture: amd64
Depends: libgnutls28 | libgnutls30
# Changelog: CHANGELOG.md
# Readme: README.md
Files: proxysql /usr/bin/
etc/proxysql.cnf /etc/
etc/logrotate.d/proxysql /etc/logrotate.d/
systemd/system/proxysql-initial.service /lib/systemd/system/
systemd/system/proxysql.service /lib/systemd/system/
tools/proxysql_galera_checker.sh /usr/share/proxysql/tools/
tools/proxysql_galera_writer.pl /usr/share/proxysql/tools/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
Section: misc
Priority: optional
Homepage: http://www.proxysql.com
Homepage: https://proxysql.com
Standards-Version: 3.9.2

Package: proxysql
Version: PKG_VERSION_CURVER
Maintainer: Rene Cannao <rene.cannao@gmail.com>
Maintainer: ProxySQL LLC <info@proxysql.com>
Architecture: amd64
Depends: libgnutls28 | libgnutls30 | libgnutls-deb0-28
# Changelog: CHANGELOG.md
# Readme: README.md
Files: proxysql /usr/bin/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ Release: 1
License: GPL+
Group: Development/Tools
SOURCE0 : %{name}-%{version}.tar.gz
URL: http://www.proxysql.com/

URL: https://proxysql.com/
Requires: gnutls
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Expand Down Expand Up @@ -84,6 +84,7 @@ fi
%config(noreplace) %attr(640,root,%{name}) %{_sysconfdir}/logrotate.d/%{name}
%{_bindir}/*
%{_sysconfdir}/systemd/system/%{name}.service
%{_sysconfdir}/systemd/system/%{name}-initial.service
/usr/share/proxysql/tools/proxysql_galera_checker.sh
/usr/share/proxysql/tools/proxysql_galera_writer.pl

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ License: GPL+
Group: Development/Tools
SOURCE0 : %{name}-%{version}.tar.gz
URL: http://www.proxysql.com/

Requires: gnutls
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

%description
Expand Down
2 changes: 1 addition & 1 deletion etc/init.d/proxysql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

OLDDATADIR="/var/run/proxysql"
DATADIR="/var/lib/proxysql"
OPTS="-c /etc/proxysql.cnf -D $DATADIR"
OPTS="--idle-threads -c /etc/proxysql.cnf -D $DATADIR"
PIDFILE="$DATADIR/proxysql.pid"
USER="proxysql"

Expand Down
2 changes: 1 addition & 1 deletion etc/proxysql.cnf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
# file is only used to initial the on-disk database read on the first startup.
#
# In order to FORCE a re-initialise of the on-disk database from the configuration file
# the ProxySQL service should be started with "service proxysql initial".
# the ProxySQL service should be started with "systemctl start proxysql-initial".
#
########################################################################################

Expand Down
2 changes: 2 additions & 0 deletions include/MySQL_HostGroups_Manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <thread>
#include <iostream>
#include <mutex>

#include "thread.h"
#include "wqueue.h"
Expand Down Expand Up @@ -313,6 +314,7 @@ class MySQL_HostGroups_Manager {
umap_mysql_errors mysql_errors_umap;

public:
std::mutex galera_set_writer_mutex;
pthread_rwlock_t gtid_rwlock;
std::unordered_map <string, GTID_Server_Data *> gtid_map;
struct ev_async * gtid_ev_async;
Expand Down
3 changes: 2 additions & 1 deletion include/MySQL_Thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class MySQL_Threads_Handler
char *interfaces;
char *server_version;
char *keep_multiplexing_variables;
unsigned int default_charset;
//unsigned int default_charset; // removed in 2.0.13 . Obsoleted previously using MySQL_Variables instead
unsigned int handle_unknown_charset;
bool servers_stats;
bool commands_stats;
Expand Down Expand Up @@ -394,6 +394,7 @@ class MySQL_Threads_Handler
} variables;
struct {
unsigned int mirror_sessions_current;
int threads_initialized = 0;
} status_variables;
unsigned int num_threads;
proxysql_mysql_thread_t *mysql_threads;
Expand Down
3 changes: 3 additions & 0 deletions include/MySQL_Variables.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ class MySQL_Variables {
static verify_var verifiers[SQL_NAME_LAST];
static update_var updaters[SQL_NAME_LAST];

public:
std::string variables_regexp;

public:
MySQL_Variables();

Expand Down
3 changes: 3 additions & 0 deletions include/mysql_connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ using json = nlohmann::json;
#define STATUS_MYSQL_CONNECTION_SQL_LOG_BIN0 0x00000100
#define STATUS_MYSQL_CONNECTION_FOUND_ROWS 0x00000200
#define STATUS_MYSQL_CONNECTION_NO_BACKSLASH_ESCAPES 0x00000400
#define STATUS_MYSQL_CONNECTION_HAS_SAVEPOINT 0x00000800

class Variable {
public:
Expand Down Expand Up @@ -146,6 +147,7 @@ class MySQL_Connection {
void set_status_no_backslash_escapes(bool);
void set_status_prepared_statement(bool);
void set_status_user_variable(bool);
void set_status_has_savepoint(bool);
void set_status_no_multiplex(bool);
void set_status_sql_log_bin0(bool);
void set_status_found_rows(bool);
Expand All @@ -157,6 +159,7 @@ class MySQL_Connection {
bool get_status_no_backslash_escapes();
bool get_status_prepared_statement();
bool get_status_user_variable();
bool get_status_has_savepoint();
bool get_status_no_multiplex();
bool get_status_sql_log_bin0();
bool get_status_found_rows();
Expand Down
Loading