Merge lp:~eric-rnd/mysql-proxy/mysql-proxy-fixes into lp:mysql-proxy

Proposed by Eric Herman
Status: Merged
Approved by: Kay Roepke
Approved revision: 820
Merge reported by: Kay Roepke
Merged at revision: not available
Proposed branch: lp:~eric-rnd/mysql-proxy/mysql-proxy-fixes
Merge into: lp:mysql-proxy
Diff against target: None lines
To merge this branch: bzr merge lp:~eric-rnd/mysql-proxy/mysql-proxy-fixes
Reviewer Review Type Date Requested Status
Kay Roepke (community) Approve
Review via email: mp+11873@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Eric Herman (eric-rnd) wrote :

Simple fix for: http://bugs.mysql.com/bug.php?id=47370

produces the following:

halle:mysql-proxy eric$ ./sbin/mysql-proxy --log-file=mysql-proxy.log --plugins=proxy --proxy-backend-addresses=127.0.0.1:13306 --log-level=message &
[1] 10475
halle:mysql-proxy eric$ cat mysql-proxy.log
2009-09-16 13:55:13: (message) mysql-proxy 0.8.0 started
2009-09-16 13:55:13: (message) proxy listening on port :4040
2009-09-16 13:55:13: (message) added read/write backend: 127.0.0.1:13306

Revision history for this message
Kay Roepke (kay-roepke) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/proxy/proxy-plugin.c'
2--- plugins/proxy/proxy-plugin.c 2009-08-25 16:17:38 +0000
3+++ plugins/proxy/proxy-plugin.c 2009-09-16 12:20:47 +0000
4@@ -1935,6 +1935,7 @@
5 if (0 != network_socket_bind(listen_sock)) {
6 return -1;
7 }
8+ g_message("proxy listening on port %s", config->address);
9
10 for (i = 0; config->backend_addresses && config->backend_addresses[i]; i++) {
11 network_backends_add(g->backends, config->backend_addresses[i], BACKEND_TYPE_RW);
12
13=== modified file 'src/network-backend.c'
14--- src/network-backend.c 2009-05-27 17:43:59 +0000
15+++ src/network-backend.c 2009-09-16 12:20:47 +0000
16@@ -125,6 +125,8 @@
17 if (!is_known) g_ptr_array_add(bs->backends, new_backend);
18 g_mutex_unlock(bs->backends_mutex);
19
20+ if (!is_known) g_message("added %s backend: %s", (type == BACKEND_TYPE_RW) ? "read/write" : "read-only", address);
21+
22 return is_known ? -1 : 0;
23 }
24

Subscribers

People subscribed via source and target branches