Clean up get_backend_from_dcb

Replace the original version of the function with the reference version
and use it everywhere. Added runtime assertions to check that an invalid
DCB is never processed.
This commit is contained in:
Markus Mäkelä
2017-10-06 12:45:46 +03:00
committed by Johan Wikman
parent 87c01428be
commit b1e224ac84
2 changed files with 13 additions and 32 deletions

View File

@ -60,7 +60,6 @@ bool send_readonly_error(DCB *dcb);
* The following are implemented in readwritesplit.c
*/
int router_handle_state_switch(DCB *dcb, DCB_REASON reason, void *data);
SRWBackend get_backend_from_dcb(RWSplitSession *rses, DCB *dcb);
int rses_get_max_replication_lag(RWSplitSession *rses);
/*