This function is used to retrieve the next log event, using
data from the event to fill in the supplied
int ndb_logevent_get_next ( const NdbLogEventHandle handle, struct ndb_logevent* logevent, unsigned timeout )
Prior to NDB 7.2.14 and NDB 7.3.2, the log event's
cast to an
enum type. This behavior,
although incorrect, interefered with existing applications
and was reinstated in NDB 7.2.18 and NDB 7.3.7; a new
function exhibiting the corrected behavior
was added in these releases.
Parameters. Three parameters are expected by this function:
A pointer to an
The number of milliseconds to wait for the event before timing out; passing
0for this parameter causes the function to block until the next log event is received
The value returned by this function is interpreted as
follows: If the return value is less than or equal to zero,
logevent is not altered
or affected in any way.
> 0: The event exists, and it data was retrieved into the
0: A timeout occurred while waiting for the event (more than
< 0: An error occurred.