| 3023 | |
| 3024 | |
| 3025 | void Batch::sendDeferredPacket(IStatus* status, rem_port* port, PACKET* packet, bool flash) |
| 3026 | { |
| 3027 | if (port->port_flags & PORT_lazy) |
| 3028 | { |
| 3029 | send_partial_packet(port, packet); |
| 3030 | defer_packet(port, packet, true); |
| 3031 | |
| 3032 | if ((port->port_protocol >= PROTOCOL_VERSION17) && |
| 3033 | ((port->port_deferred_packets->getCount() >= DEFER_BATCH_LIMIT) || flash)) |
| 3034 | { |
| 3035 | packet->p_operation = op_batch_sync; |
| 3036 | send_packet(port, packet); |
| 3037 | receive_packet(port, packet); |
| 3038 | |
| 3039 | LocalStatus warning; |
| 3040 | port->checkResponse(&warning, packet, false); |
| 3041 | Rsr* statement = stmt->getStatement(); |
| 3042 | if (statement->haveException()) |
| 3043 | { |
| 3044 | cleanup(); |
| 3045 | statement->raiseException(); |
| 3046 | } |
| 3047 | } |
| 3048 | } |
| 3049 | else if (status) |
| 3050 | { |
| 3051 | send_and_receive(status, port->port_context, packet); |
| 3052 | } |
| 3053 | else |
| 3054 | { |
| 3055 | LocalStatus local; |
| 3056 | send_and_receive(&local, port->port_context, packet); |
| 3057 | } |
| 3058 | } |
| 3059 | |
| 3060 | |
| 3061 | void Batch::setDefaultBpb(CheckStatusWrapper* status, unsigned parLength, const unsigned char* par) |
nothing calls this directly
no test coverage detected