Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual ndb_mgm_get_latest_error()

Description.  This function is used to get the latest error code associated with a given management server handle.

Prior to NDB 7.4.8, this function was not safe for use with NULL. In later versions, ndb_mgm_get_latest_error() is null-safe but returns an arbitrary value. (Bug #78130, Bug #21651706)


int ndb_mgm_get_latest_error
      const NdbMgmHandle handle

Parameters.  An NdbMgMHandle.

Return value.  An error code corresponding to an ndb_mgm_error value. You can obtain the related error message using ndb_mgm_get_latest_error_msg().