anchor.diff:  	RNewState =
   		case check_run_node(RRunNode) of
   			true ->
  -				do_connect(read, ReadArgs, WNewState);
  +				do_conn(read, ReadArgs, WNewState);
   			_ ->
   				WNewState
   		end,
  
positive.code: 	    Conn = new_conn(ServerName, PoolId, ConnPid, true, Host, Port, User, Password,
  			    Database, Encoding),
  	    State = #state{log_fun = LogFun1},
  	    {ok, add_conn(Conn, State)};
  	{error, Reason} ->
  	    ?Log(LogFun1, error,
  		 "failed starting first MySQL connection handler, "
  
negative.code: %%@doc
  %%@date:2014-1-3
  %%
  do_conn(write, [ServerName, PoolId, Host, Port, User, Pwd, DB, LogFun, Encoding]=Args, OldState) ->
  	Size = mysql_util:get_w_pool_size() - 1,
  	if
  		Size =< 0 -> OldState;
  		true -> do_connect(Size, Args, OldState)
  	end;
  do_conn(read, [ServerName, PoolId, Host, Port, User, Pwd, DB, LogFun, Encoding]=Args, OldState) ->
  	Size = mysql_util:get_r_pool_size() - 1,
  	if
  		Size =< 0 -> OldState;
  		true -> do_connect(Size, Args, OldState)
  	end;
  do_conn(log, [ServerName, PoolId, Host, Port, User, Pwd, DB, LogFun, Encoding]=Args, OldState) ->
  	Size = mysql_util:get_l_pool_size() - 1,
  	if
  		Size =< 0 -> OldState;
  		true -> do_connect(Size, Args, OldState)
  	end.
  
  
  do_connect(0, _Args, OldState) ->
  	OldState;
  do_connect(N, [ServerName, PoolId, Host, Port, User, Password, Database, Encoding]=Args, OldState) when is_integer(N), N > 0 ->
  	{ok, _Pid, NewState} =
  		refresh_connect(ServerName, PoolId, Host, Port, User, Password, Database, Encoding, true, true, OldState),
  	do_connect(N-1, Args, NewState).
  
  