Description.  This function is used to retrieve the next log event, using data from the event to fill in the supplied ndb_logevent structure.


int ndb_logevent_get_next
      const NdbLogEventHandle handle,
      struct ndb_logevent*    logevent,
      unsigned                timeout


Prior to MySQL Cluster NDB 7.1.27, MySQL Cluster NDB 7.2.14, and MySQL Cluster NDB 7.3.2, the log event's ndb_mgm_event_category was cast to an enum type. This behavior, although incorrect, interefered with existing applications and was reinstated in MySQL Cluster NDB 7.1.33, MySQL Cluster NDB 7.2.18, and MySQL Cluster NDB 7.3.7; a new function exhibiting the corrected behavior ndb_logevent_get_next2() was added in these releases.

Parameters.  Three parameters are expected by this function:

Return value.  The value returned by this function is interpreted as follows: If the return value is less than or equal to zero, then the logevent is not altered or affected in any way.