Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual

MySQL NDB Cluster API Developer Guide  /  ...  /  NdbTransaction::getNextCompletedOperation() NdbTransaction::getNextCompletedOperation()

Description.  This method is used to retrieve a transaction's completed operations. It is typically used to fetch all operations belonging to a given transaction to check for errors.

NdbTransaction::getNextCompletedOperation(NULL) returns the transaction's first NdbOperation object; NdbTransaction::getNextCompletedOperation(myOp) returns the NdbOperation object defined after NdbOperation myOp.


This method should only be used after the transaction has been executed, but before the transaction has been closed.


const NdbOperation* getNextCompletedOperation
      const NdbOperation* op
    ) const

Parameters.  This method requires a single parameter op, which is an operation (NdbOperation object), or NULL.

Return value.  The operation following op, or the first operation defined for the transaction if getNextCompletedOperation() was called using NULL.