MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / API_ROUTINE isc_prepare_transaction2

Function API_ROUTINE isc_prepare_transaction2

src/yvalve/why.cpp:3142–3159  ·  view source on GitHub ↗

Prepare a transaction for commit. First phase of a two phase commit.

Source from the content-addressed store, hash-verified

3140
3141// Prepare a transaction for commit. First phase of a two phase commit.
3142ISC_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).

Callers

nothing calls this directly

Calls 3

translateHandleFunction · 0.85
prepareMethod · 0.45
stuffExceptionMethod · 0.45

Tested by

no test coverage detected