Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual NdbTransaction::getGCI()

Description.  This method retrieves the transaction's global checkpoint ID (GCI).

Each committed transaction belongs to a GCI. The log for the committed transaction is saved on disk when a global checkpoint occurs.

By comparing the GCI of a transaction with the value of the latest GCI restored in a restarted NDB Cluster, you can determine whether or not the transaction was restored.


Whether or not the global checkpoint with this GCI has been saved on disk cannot be determined by this method.


The GCI for a scan transaction is undefined, since no updates are performed in scan transactions.


int getGCI

Parameters.  None.

Return value.  The transaction's GCI, or -1 if none is available.


No GCI is available until execute() has been called with ExecType::Commit.

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.