MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / put_slice

Method put_slice

src/remote/server/server.cpp:5499–5529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5497
5498
5499ISC_STATUS rem_port::put_slice(P_SLC * stuff, PACKET* sendL)
5500{
5501/**************************************
5502 *
5503 * p u t _ s l i c e
5504 *
5505 **************************************
5506 *
5507 * Functional description
5508 * Put an array slice.
5509 *
5510 **************************************/
5511 Rtr* transaction;
5512 LocalStatus ls;
5513 CheckStatusWrapper status_vector(&ls);
5514
5515 getHandle(transaction, stuff->p_slc_transaction);
5516
5517 Rdb* rdb = this->port_context;
5518 if (bad_db(&status_vector, rdb))
5519 return this->send_response(sendL, 0, 0, &status_vector, false);
5520
5521 sendL->p_resp.p_resp_blob_id = stuff->p_slc_id;
5522 rdb->rdb_iface->putSlice(&status_vector, transaction->rtr_iface,
5523 &sendL->p_resp.p_resp_blob_id,
5524 stuff->p_slc_sdl.cstr_length, stuff->p_slc_sdl.cstr_address,
5525 stuff->p_slc_parameters.cstr_length, stuff->p_slc_parameters.cstr_address,
5526 stuff->p_slc_slice.lstr_length, stuff->p_slc_slice.lstr_address);
5527
5528 return this->send_response(sendL, 0, 0, &status_vector, false);
5529}
5530
5531
5532ISC_STATUS rem_port::que_events(P_EVENT * stuff, PACKET* sendL)

Callers 1

process_packetFunction · 0.45

Calls 3

send_responseMethod · 0.95
bad_dbFunction · 0.85
putSliceMethod · 0.45

Tested by

no test coverage detected