Prepare a transaction for commit. First phase of a two phase commit.
| 3140 | |
| 3141 | // Prepare a transaction for commit. First phase of a two phase commit. |
| 3142 | ISC_STATUS API_ROUTINE isc_prepare_transaction2(ISC_STATUS* userStatus, isc_tr_handle* traHandle, |
| 3143 | USHORT msgLength, const UCHAR* msg) |
| 3144 | { |
| 3145 | StatusVector status(userStatus); |
| 3146 | CheckStatusWrapper statusWrapper(&status); |
| 3147 | |
| 3148 | try |
| 3149 | { |
| 3150 | RefPtr<YTransaction> transaction(translateHandle(transactions, traHandle)); |
| 3151 | transaction->prepare(&statusWrapper, msgLength, msg); |
| 3152 | } |
| 3153 | catch (const Exception& e) |
| 3154 | { |
| 3155 | e.stuffException(&statusWrapper); |
| 3156 | } |
| 3157 | |
| 3158 | return status[1]; |
| 3159 | } |
| 3160 | |
| 3161 | |
| 3162 | // Put a segment in a blob opened for writing (creation). |
nothing calls this directly
no test coverage detected