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

Method start

src/jrd/jrd.cpp:4454–4493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4452
4453
4454void JService::start(CheckStatusWrapper* user_status, unsigned int spbLength, const unsigned char* spb)
4455{
4456/**************************************
4457 *
4458 * g d s _ s e r v i c e _ s t a r t
4459 *
4460 **************************************
4461 *
4462 * Functional description
4463 * Start the specified service
4464 *
4465 * NOTE: The parameter RESERVED must not be used
4466 * for any purpose as there are networking issues
4467 * involved (as with any handle that goes over the
4468 * network). This parameter will be implemented at
4469 * a later date.
4470 **************************************/
4471 try
4472 {
4473 ThreadContextHolder tdbb(user_status);
4474
4475 validateHandle(svc);
4476
4477 svc->start(spbLength, spb);
4478
4479 UtilSvc::StatusAccessor status = svc->getStatusAccessor();
4480 if (status->getState() & IStatus::STATE_ERRORS)
4481 {
4482 fb_utils::copyStatus(user_status, status);
4483 return;
4484 }
4485 }
4486 catch (const Exception& ex)
4487 {
4488 ex.stuffException(user_status);
4489 return;
4490 }
4491
4492 successful_completion(user_status);
4493}
4494
4495
4496void JRequest::startAndSend(CheckStatusWrapper* user_status, ITransaction* tra, int level,

Callers 6

svc_api_gbakFunction · 0.45
setupTimerMethod · 0.45
gsecFunction · 0.45
EXE_execute_triggersFunction · 0.45
registerManagerMethod · 0.45
setMethod · 0.45

Calls 15

validateHandleFunction · 0.85
copyStatusFunction · 0.85
successful_completionFunction · 0.85
check_databaseFunction · 0.85
JRD_startFunction · 0.85
transliterateExceptionFunction · 0.85
TimerInterfacePtrClass · 0.85
checkFunction · 0.70
getStatusAccessorMethod · 0.45
getStateMethod · 0.45

Tested by

no test coverage detected