| 3729 | |
| 3730 | |
| 3731 | void JTransaction::prepare(CheckStatusWrapper* user_status, unsigned int msg_length, const unsigned char* msg) |
| 3732 | { |
| 3733 | /************************************** |
| 3734 | * |
| 3735 | * g d s _ $ p r e p a r e |
| 3736 | * |
| 3737 | ************************************** |
| 3738 | * |
| 3739 | * Functional description |
| 3740 | * Prepare a transaction for commit. First phase of a two |
| 3741 | * phase commit. |
| 3742 | * |
| 3743 | **************************************/ |
| 3744 | try |
| 3745 | { |
| 3746 | EngineContextHolder tdbb(user_status, this, FB_FUNCTION); |
| 3747 | check_database(tdbb); |
| 3748 | |
| 3749 | try |
| 3750 | { |
| 3751 | prepare_tra(tdbb, getHandle(), msg_length, msg); |
| 3752 | } |
| 3753 | catch (const Exception& ex) |
| 3754 | { |
| 3755 | transliterateException(tdbb, ex, user_status, "JTransaction::prepare"); |
| 3756 | return; |
| 3757 | } |
| 3758 | } |
| 3759 | catch (const Exception& ex) |
| 3760 | { |
| 3761 | ex.stuffException(user_status); |
| 3762 | return; |
| 3763 | } |
| 3764 | |
| 3765 | successful_completion(user_status); |
| 3766 | } |
| 3767 | |
| 3768 | |
| 3769 | void JBlob::putSegment(CheckStatusWrapper* user_status, unsigned int buffer_length, const void* buffer) |
no test coverage detected