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

Method cancelOperation

src/jrd/jrd.cpp:2477–2511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2475
2476
2477void JAttachment::cancelOperation(CheckStatusWrapper* user_status, int option)
2478{
2479/**************************************
2480 *
2481 * g d s _ $ c a n c e l _ o p e r a t i o n
2482 *
2483 **************************************
2484 *
2485 * Functional description
2486 * Try to cancel an operation.
2487 *
2488 **************************************/
2489 try
2490 {
2491 EngineContextHolder tdbb(user_status, this, FB_FUNCTION,
2492 AttachmentHolder::ATT_LOCK_ASYNC | AttachmentHolder::ATT_NON_BLOCKING);
2493
2494 try
2495 {
2496 JRD_cancel_operation(tdbb, getHandle(), option);
2497 }
2498 catch (const Exception& ex)
2499 {
2500 transliterateException(tdbb, ex, user_status, "JAttachment::cancelOperation");
2501 return;
2502 }
2503 }
2504 catch (const Exception& ex)
2505 {
2506 ex.stuffException(user_status);
2507 return;
2508 }
2509
2510 successful_completion(user_status);
2511}
2512
2513
2514void JBlob::close(CheckStatusWrapper* user_status)

Callers 2

cancelExecutionMethod · 0.45
doRollbackMethod · 0.45

Calls 4

JRD_cancel_operationFunction · 0.85
transliterateExceptionFunction · 0.85
successful_completionFunction · 0.85
stuffExceptionMethod · 0.45

Tested by

no test coverage detected