Bug 140039 - [FIX] databases/mysql-proxy fix broken rw-spliting
Summary: [FIX] databases/mysql-proxy fix broken rw-spliting
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cheng-Lung Sung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-28 05:50 UTC by viper
Modified: 2009-10-28 06:40 UTC (History)
0 users

See Also:


Attachments
file.diff (3.41 KB, patch)
2009-10-28 05:50 UTC, viper
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description viper 2009-10-28 05:50:00 UTC
set is_debug = true in rw-splitting.lua.

"2009-10-28 10:27:09: (critical) proxy-plugin.c:1389: (connect_server)
[string "/usr/local/share/mysql-proxy/rw-splitting.l..."]:69: .address is
deprecated. Use .src.name or .dst.name instead
2009-10-28 10:27:09: (critical) (read_query) [string
"/usr/local/share/mysql-proxy/rw-splitting.l..."]:179: .address is
deprecated. Use .src.name or .dst.name instead
2009-10-28 10:27:09: (critical) proxy-plugin.c.1129: I have no server
backend, closing connection
2009-10-28 10:27:09: (critical) network-mysqld.c.1188:
plugin_call(CON_STATE_READ_QUERY) failed
2009-10-28 10:27:09: (debug) [network-mysqld.c:784]: error on a connection
(fd: -1 event: 0). closing client connection.
2009-10-28 10:27:09: (critical) proxy-plugin.c.1684: (disconnect_client)
[string "/usr/local/share/mysql-proxy/rw-splitting.l..."]:356: .address is
deprecated. Use .src.name or .dst.name instead"

with patch
"[connect_server] 127.0.0.1:17059
  [1].connected_clients = 0
  [1].pool.cur_idle     = 0
  [1].pool.max_idle     = 8
  [1].pool.min_idle     = 4
  [1].type = 1
  [1].state = 0
  [1] idle-conns below min-idle
[read_query] 127.0.0.1:17059
  current backend   = 0
  client default db =
  client username   = root
  sending to backend : 127.0.0.1:3306
    is_slave         : false
    server default db:
    server username  : root
    in_trans        : false
    in_calc_found   : false
    COM_QUERY       : false
"

patch-mysql-proxy.txt

Fix: apply patch

Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2009-10-28 05:50:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer 2009-10-28 06:35:44 UTC
clsung      2009-10-28 06:35:35 UTC

  FreeBSD ports repository

  Modified files:
    databases/mysql-proxy Makefile 
  Added files:
    databases/mysql-proxy/files patch-lib-rw-splitting.lua 
  Removed files:
    databases/mysql-proxy/files patch-lib-proxy-Makefile.in 
  Log:
  - fix broken rw-spliting
  - bump PORTREVISION
  
  PR:             ports/140039
  Submitted by:   Vladimir Korkodinov <viper_AT_perm dot raid dot ru>
  
  Revision  Changes    Path
  1.18      +1 -1      ports/databases/mysql-proxy/Makefile
  1.3       +0 -0      ports/databases/mysql-proxy/files/patch-lib-proxy-Makefile.in (dead)
  1.1       +73 -0     ports/databases/mysql-proxy/files/patch-lib-rw-splitting.lua (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Cheng-Lung Sung freebsd_committer 2009-10-28 06:35:45 UTC
State Changed
From-To: open->closed

Committed. Thank You.