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

Method checkCancelState

src/jrd/jrd.cpp:9287–9310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9285}
9286
9287void thread_db::checkCancelState()
9288{
9289 ISC_STATUS secondary = 0;
9290 const ISC_STATUS error = getCancelState(&secondary);
9291
9292 if (error)
9293 {
9294 Arg::Gds status(error);
9295
9296 if (error == isc_shutdown)
9297 status << Arg::Str(attachment->att_filename);
9298
9299 if (secondary)
9300 status << Arg::Gds(secondary);
9301
9302 if (attachment)
9303 attachment->att_flags &= ~ATT_cancel_raise;
9304
9305 tdbb_flags |= TDBB_sys_error;
9306 status.copyTo(tdbb_status_vector);
9307
9308 CCH_unwind(this, true);
9309 }
9310}
9311
9312void thread_db::reschedule()
9313{

Callers 4

fetchMethod · 0.80
LCK_convertFunction · 0.80
LCK_lockFunction · 0.80
processMethod · 0.80

Calls 4

StrClass · 0.85
GdsClass · 0.85
CCH_unwindFunction · 0.85
copyToMethod · 0.45

Tested by

no test coverage detected