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

Method blockingAstShutdown

src/jrd/Attachment.cpp:953–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951}
952
953int Jrd::Attachment::blockingAstShutdown(void* ast_object)
954{
955 Jrd::Attachment* const attachment = static_cast<Jrd::Attachment*>(ast_object);
956
957 try
958 {
959 Database* const dbb = attachment->att_database;
960
961 AsyncContextHolder tdbb(dbb, FB_FUNCTION, attachment->att_id_lock);
962
963 attachment->signalShutdown(isc_att_shut_killed);
964
965 JRD_shutdown_attachment(attachment);
966 }
967 catch (const Exception&)
968 {} // no-op
969
970 return 0;
971}
972
973int Jrd::Attachment::blockingAstCancel(void* ast_object)
974{

Callers

nothing calls this directly

Calls 2

JRD_shutdown_attachmentFunction · 0.85
signalShutdownMethod · 0.80

Tested by

no test coverage detected