Re: Selecting backend based on the user connecting
Yeah,
-- pseudo code ahead
function read_auth_response(...)
-- if auth successful
proxy.connection_backend_ndx = 0
end
function read_query(...)
if proxy.connection.backend_ndx == 0 then
-- pick new backend
proxy.connection.backend_ndx = ndx
end
end
-- no reset of the backend_ndx in read_query_result()
--
Jan Kneschke, MySQL Enterprise Tools
Subject
Views
Written By
Posted
3713
August 13, 2007 03:42AM
2856
August 13, 2007 04:05AM
2683
August 13, 2007 04:11AM
2588
August 13, 2007 04:27AM
2597
August 13, 2007 05:29AM
2562
August 13, 2007 06:17AM
2746
August 20, 2007 05:47AM
2685
August 20, 2007 09:06AM
2736
August 22, 2007 07:45AM
2633
August 13, 2007 04:16AM
2624
August 13, 2007 04:25AM
2421
August 13, 2007 05:57AM
Re: Selecting backend based on the user connecting
2489
August 13, 2007 06:20AM
2682
August 13, 2007 09:03AM
2440
October 11, 2007 02:31AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.