Retrieve the “counter” number which uniquely identifies a transaction.
MCO_RET mco_trans_no( /*IN*/ mco_trans_h t, /*OUT*/ mco_trans_counter * no );
t |
The |
no |
The address of an integer variable to receive the “counter” number of this transaction |
This function is used by
mco_translog_iterate()
callback functions (part of the eXtremeDB Transaction Logging API) when iterating through the Transaction Log file to retrieve the “counter” number which uniquely identifies a transaction. This can be useful when the transaction log was created by multi-threaded applications which can update the same database object from different threads.
MCO_S_OK | The transaction number was returned successfully |
MCO_E_INVALID_HANDLE |
Invalid transaction handle |
Please refer to the SDK sample "samples/native/tl/tlogiterpipe".