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

Method cancelExecution

src/jrd/extds/IscDS.cpp:248–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248bool IscConnection::cancelExecution(bool forced)
249{
250 FbLocalStatus status;
251
252 if (m_handle)
253 {
254 m_iscProvider.fb_cancel_operation(&status, &m_handle,
255 forced ? fb_cancel_abort : fb_cancel_raise);
256
257 if (!forced && m_handle &&
258 (status->getState() & IStatus::STATE_ERRORS) &&
259 (status->getErrors()[1] != isc_bad_db_handle))
260 {
261 status->init();
262 m_iscProvider.fb_cancel_operation(&status, &m_handle, fb_cancel_abort);
263 }
264 }
265 return !(status->getState() & IStatus::STATE_ERRORS);
266}
267
268bool IscConnection::resetSession(thread_db* tdbb)
269{

Callers 3

signalCancelMethod · 0.45
signalShutdownMethod · 0.45
cancelConnectionsMethod · 0.45

Calls 4

fb_cancel_operationMethod · 0.80
getStateMethod · 0.45
getErrorsMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected