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

Method end_blob

src/remote/server/server.cpp:3198–3228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3196
3197
3198ISC_STATUS rem_port::end_blob(P_OP operation, P_RLSE * release, PACKET* sendL)
3199{
3200/**************************************
3201 *
3202 * e n d _ b l o b
3203 *
3204 **************************************
3205 *
3206 * Functional description
3207 * End a blob.
3208 *
3209 **************************************/
3210 Rbl* blob;
3211 LocalStatus ls;
3212 CheckStatusWrapper status_vector(&ls);
3213
3214 getHandle(blob, release->p_rlse_object);
3215
3216 if (operation == op_close_blob)
3217 blob->rbl_iface->close(&status_vector);
3218 else
3219 blob->rbl_iface->cancel(&status_vector);
3220
3221 if (!(status_vector.getState() & IStatus::STATE_ERRORS))
3222 {
3223 blob->rbl_iface = NULL;
3224 release_blob(blob);
3225 }
3226
3227 return this->send_response(sendL, 0, 0, &status_vector, false);
3228}
3229
3230
3231ISC_STATUS rem_port::end_database(P_RLSE* /*release*/, PACKET* sendL)

Callers 1

process_packetFunction · 0.80

Calls 5

send_responseMethod · 0.95
release_blobFunction · 0.70
closeMethod · 0.45
cancelMethod · 0.45
getStateMethod · 0.45

Tested by

no test coverage detected