mariadb_rpl_fetch3
Name
mariadb_rpl_fetch - fetches next event from replication stream
Synopsis
-
#include <mariadb_rpl.h> MARIADB_RPL_EVENT *mariadb_rpl_fetch(MARIADB_RPL *rpl, MARIADB_RPL_EVENT *event)
Description
Fetches one event from the replication stream
Parameter
- •
-
rpl- A replication handle which was initialized bymariadb_rpl_init(3)and connected bymariadb_rpl_open(3).
- •
-
event- An event which was returned by a previous call tomariadb_rpl_fetch. If this value isNULLthe function will allocate new memory for the event, otherwise the passed event value will be overwritten.
Return value
An event handle or NULL if EOF packet was received.
Notes
Event memory needs to be freed by calling mariadb_rpl_free_event(3).
See also
- •
-
mariadb_rpl_free_event(3)
Releases
3 releases since Debian 12 (Bookworm); the text changed 1 time.