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

Function trace_warning

src/jrd/jrd.cpp:1544–1560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1542
1543
1544static void trace_warning(thread_db* tdbb, FbStatusVector* userStatus, const char* func)
1545{
1546 Jrd::Attachment* att = tdbb->getAttachment();
1547 if (!att)
1548 return;
1549
1550 if (att->att_trace_manager->needs(ITraceFactory::TRACE_EVENT_ERROR))
1551 {
1552 TraceStatusVectorImpl traceStatus(userStatus, TraceStatusVectorImpl::TS_WARNINGS);
1553
1554 if (traceStatus.hasWarning())
1555 {
1556 TraceConnectionImpl conn(att);
1557 att->att_trace_manager->event_error(&conn, &traceStatus, func);
1558 }
1559 }
1560}
1561
1562
1563// Report to Trace API that attachment has not been created

Callers 15

executeMethod · 0.85
openCursorMethod · 0.85
fetchNextMethod · 0.85
fetchPriorMethod · 0.85
fetchFirstMethod · 0.85
fetchLastMethod · 0.85
fetchAbsoluteMethod · 0.85
fetchRelativeMethod · 0.85
prepareMethod · 0.85
getPlanMethod · 0.85
getInputMetadataMethod · 0.85
getOutputMetadataMethod · 0.85

Calls 4

needsMethod · 0.80
event_errorMethod · 0.80
getAttachmentMethod · 0.45
hasWarningMethod · 0.45

Tested by

no test coverage detected