Assembly: libdb_dotnet52 (in libdb_dotnet52.dll) Version: 18.104.22.168
public void Prepare( byte globalId )
|Visual Basic (Declaration)|
Public Sub Prepare ( _ globalId As Byte() _ )
public: void Prepare( array<unsigned char>^ globalId )
In a distributed transaction environment, Berkeley DB can be used as a local transaction manager. In this case, the distributed transaction manager must send prepare messages to each local manager. The local manager must then call Prepare and await its successful return before responding to the distributed transaction manager. Only after the distributed transaction manager receives successful responses from all of its prepare messages should it issue any commit messages.
In the case of nested transactions, preparing the parent causes all unresolved children of the parent transaction to be committed. Child transactions should never be explicitly prepared. Their fate will be resolved along with their parent's during global recovery.
If there are cursor handles open when this method is called, they are all closed inside this method. And if there are errors when closing the cursor handles, the first such error is returned.