
In routeQuery: check if master has failed and in that case abort routing with an error sent back to the client. handle_error_new_connection also tests for master failure and returns with error if that is the case.
In routeQuery: check if master has failed and in that case abort routing with an error sent back to the client. handle_error_new_connection also tests for master failure and returns with error if that is the case.