log_manager.cc :
tuned error printing and log writing output format dcb.c : dcb_connect, check return value of poll_add_dcb and behave accordingly. dcb_write, in case of SIFPIPE, only write to trace log. dcb_close, dassert with incorrect dcb states. gateway.c : added file_write_header to print header similar than in logs to stderr. main, add signal handler for SIGPIPE poll.c : poll_remove_dcb, don't fail if dcb is in NOPOLLING or in ZOMBIE states. poll_waitevents, write EPOLLHUPs to trace log, don't even attempt to write to closed socket. readconnection.h : shortened comment. readwritesplit.h : replaced generic names with more specific ones. httpd.c : Check listen return value and behave accordingly. mysql_backend.c : Tiny clean up. mysql_client.c : gw_MySQLListener, Check listen return value and behave accordingly. mysql_common.c : Shortened a header. telnetd.c : telnetd_listen, check listen return value and behave accordingly. readconnroute.c : Tuned log writing format. readwritesplit.c : Added function search_backend_servers, which chooses suitable backend and master server among those known by Maxscale. Fixed clean-up routines. Not ready yet but works somehow. testroute.c : Cleanup. skygw_utils.cc : Log writing clean up.
This commit is contained in:
@ -90,12 +90,6 @@ version()
|
||||
void
|
||||
ModuleInit()
|
||||
{
|
||||
#if defined(SS_DEBUG)
|
||||
skygw_log_write(
|
||||
LOGFILE_MESSAGE,
|
||||
strdup("Initial MySQL Backend Protcol module."));
|
||||
#endif
|
||||
fprintf(stderr, "Initial MySQL Backend Protcol module.\n");
|
||||
}
|
||||
|
||||
/*
|
||||
@ -187,17 +181,17 @@ static int gw_read_backend_event(DCB *dcb) {
|
||||
current_session->client_sha1,
|
||||
backend_protocol) != 0)
|
||||
{
|
||||
backend_protocol->state = MYSQL_AUTH_FAILED;
|
||||
ss_dassert(backend_protocol->state == MYSQL_AUTH_FAILED);
|
||||
rc = 1;
|
||||
} else {
|
||||
/**
|
||||
* next step is to wait server's response with
|
||||
* a new EPOLLIN event
|
||||
*/
|
||||
backend_protocol->state = MYSQL_AUTH_RECV;
|
||||
rc = 0;
|
||||
ss_dassert(backend_protocol->state == MYSQL_AUTH_RECV);
|
||||
rc = 0;
|
||||
goto return_rc;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user