Use references instead of copies of SRWBackend
As the DCB passed as the clientReply parameter is guaranteed to match one of the DCBs in the RWBackends. By using a reference, the need to copy a shared_ptr is removed (along with the atomic operation that it implies) thus reducing the overhead in the clientReply and the functions it uses.
This commit is contained in:
committed by
Johan Wikman
parent
a6eeed98fe
commit
ecb56ef540
@ -47,7 +47,7 @@ bool route_single_stmt(RWSplit *inst, RWSplitSession *rses,
|
||||
GWBUF *querybuf);
|
||||
void closed_session_reply(GWBUF *querybuf);
|
||||
void print_error_packet(RWSplitSession *rses, GWBUF *buf, DCB *dcb);
|
||||
void check_session_command_reply(GWBUF *writebuf, SRWBackend bref);
|
||||
void check_session_command_reply(GWBUF *buffer, SRWBackend& backend);
|
||||
bool execute_sescmd_in_backend(SRWBackend& backend_ref);
|
||||
bool handle_target_is_all(route_target_t route_target,
|
||||
RWSplit *inst, RWSplitSession *rses,
|
||||
|
||||
Reference in New Issue
Block a user