1mariadb_rpl_fetch(3) MariaDB Connector/C mariadb_rpl_fetch(3)
2
3
4
5 Name
6 mariadb_rpl_fetch - fetches next event from replication stream
7
8 Synopsis
9 #include <mariadb_rpl.h>
10
11 MARIADB_RPL_EVENT *mariadb_rpl_fetch(MARIADB_RPL *rpl, MARIADB_RPL_EVENT *event)
12
13 Description
14 Fetches one event from the replication stream
15
16 Parameter
17 • rpl - A replication handle which was initialized by mari‐
18 adb_rpl_init(3) and connected by mariadb_rpl_open(3).
19
20 • event - An event which was returned by a previous call to mari‐
21 adb_rpl_fetch. If this value is NULL the function will allocate new
22 memory for the event, otherwise the passed event value will be over‐
23 written.
24
25 Return value
26 An event handle or NULL if EOF packet was received.
27
28 Notes
29 Event memory needs to be freed by calling mariadb_rpl_free_event(3).
30
31 See also
32 • mariadb_rpl_free_event(3)
33
34 History
35 mariadb_rpl_fetch was added in MariaDB Connector/C 3.1.0
36
37
38
39Version 3.3.1 mariadb_rpl_fetch(3)