Simplify error handling

The error handlers are now simpler as the Backend class handles the
closing of the connections.
This commit is contained in:
Markus Mäkelä
2017-03-28 23:38:07 +03:00
parent a3396a06b8
commit c59ed30da1
2 changed files with 13 additions and 53 deletions

View File

@ -127,8 +127,6 @@ private:
SBackend get_bref_from_dcb(DCB* dcb);
bool get_shard_dcb(DCB** dcb, char* name);
bool handle_default_db();
bool handle_error_new_connection(SBackend& bref, GWBUF* errmsg);
void handle_error_reply_client(SBackend& bref, GWBUF* errmsg);
bool have_servers();
bool route_session_write(GWBUF* querybuf, uint8_t command);
bool send_database_list();