MySQL NDB Cluster API Developer Guide

2.3.30.22 NdbTransaction::refresh()

Description.  This method updates the transaction's timeout counter, and thus avoids aborting due to transaction timeout.

Note

It is not advisable to take a lock on a record and maintain it for a extended time since this can impact other transactions.

Signature. 

int refresh
    (
      void
    )

Parameters.  None.

Return value.  Returns 0 on success, -1 on failure.