| 2475 | |
| 2476 | |
| 2477 | void 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 | |
| 2514 | void JBlob::close(CheckStatusWrapper* user_status) |
no test coverage detected