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

Function TRACE_main

src/jrd/trace/TraceService.cpp:392–414  ·  view source on GitHub ↗

service entrypoint

Source from the content-addressed store, hash-verified

390
391// service entrypoint
392int TRACE_main(UtilSvc* arg)
393{
394 Service* svc = (Service*) arg;
395 int exit_code = FB_SUCCESS;
396
397 TraceSvcJrd traceSvc(*svc);
398 try
399 {
400 fbtrace(svc, &traceSvc);
401 }
402 catch (const Exception& e)
403 {
404 StaticStatusVector status;
405 e.stuffException(status);
406
407 UtilSvc::StatusAccessor sa = svc->getStatusAccessor();
408 sa.init();
409 sa.setServiceStatus(status.begin());
410 exit_code = FB_FAILURE;
411 }
412
413 return exit_code;
414}

Callers

nothing calls this directly

Calls 6

fbtraceFunction · 0.85
stuffExceptionMethod · 0.45
getStatusAccessorMethod · 0.45
initMethod · 0.45
setServiceStatusMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected