Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Ndb::closeTransaction()

Description.  This is one of two NDB API methods provided for closing a transaction (the other being NdbTransaction::close()). You must call one of these two methods to close the transaction once it has been completed, whether or not the transaction succeeded.


If the transaction has not yet been committed, it is aborted when this method is called. See Section, “Ndb::startTransaction()”.


void closeTransaction
      NdbTransaction *transaction

Parameters.  This method takes a single argument, a pointer to the NdbTransaction to be closed.

Return value.  N/A.