mariadb_rpl_get_optionsv(3)
mariadb_rpl_get_optionsv π
okay bestie, so this one lives in the MariaDB Connector/C family (that's the manual name, in case you were wondering which crew we're running with) and it's literally the getter of the replication option world. Name on the birth certificate: mariadb_rpl_get_optionsv β get replication option value. read it back. say it with your chest. π
β¨ SYNOPSIS β¨
#include <mariadb_rpl.h>
int mariadb_rpl_get_optionsv(MARIADB_RPL *rpl, enum mariadb_rpl_option option, ...)
look at those ... at the end β she's variadic, she's mysterious, she takes one or more values and she is not sorry about it. π
πΈ PARAMETER πΈ
rplβ a replication handle, and listen, it has to be one that was already allocated bymariadb_rpl_init. don't be out here passing random garbage, bestie, that's not the vibe. πoptionβ the option you wanna get, followed by one or more values. yes, one or more, she's flexible like that. β¨
π¦ the option menu (pick your fighter)
MARIADB_RPL_FILENAMEβ type:char **,size_t *. it hands you the name of the binlog file and the length of that name. two for one, we love an overachiever. πMARIADB_RPL_STARTβ type:unsigned long *. this is the start position. where we're starting. the starting point. iconic. βMARIADB_RPL_SERVER_IDβ type:uint32_t *. the server id, no cap. πMARIADB_RPL_FLAGSβ type:uint32_t *. flags. flags flags flags. πMARIADB_RPL_SEMI_SYNCβ type:uint32_t *. semi sync replication:1= ON,0= OFF. and ngl, this one is a newer addition β it was added in version 3.3.6. so if you're on something ancient, she's not there yet, don't come for her. π
π«Ά RETURN VALUE π«Ά
returns zero on success, non zero on error. that's it, that's the whole personality. zero = slay, non-zero = something went sideways, go check yourself. π
lowkey important: zero is the good one here. don't get it twisted.
π SEE ALSO π
mariadb_rpl_optionsv(3)β her sibling. the setter to this getter. go read that one too, iykyk. π§
π HISTORY π
mariadb_rpl_get_optionsv was added in MariaDB Connector/C 3.1.0. so she's been around, she's established, she's got main character energy from day one. π
and that's the whole page, bestie!! this was pulled from the MariaDB Connector/C manual, Version 3.4 era, and the title line up top is literally mariadb_rpl_get_optionsv(3) if you ever need to cite her. mwah, go get those options. πβ¨π
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms