mariadb_rpl_optionsv(3)
β¨ mariadb_rpl_optionsv β¨
okay so bestie, welcome to the MariaDB Connector/C corner of the man pages π
today we're talking about mariadb_rpl_optionsv β she sets replication options, and she eats every single time π
πΈ NAME πΈ
mariadb_rpl_optionsv β sets replication options π
π¦ SYNOPSIS π¦
#include <mariadb_rpl.h>
int mariadb_rpl_optionsv(MARIADB_RPL *rpl, enum mariadb_rpl_option option, ...)
π PARAMETER π
rplβ a replication handle which was previously allocated bymariadb_rpl_init. like, she's already in the group chat, you just gotta hand her the tea π«optionβ The option to be set, followed by one or more values. so you say what you want, and then you hand over the actual value(s). no cap.
π OPTIONS π
here's the whole roster, bestie β every single one, and what type of value she's expecting:
MARIADB_RPL_FILENAMEβ typechar *β The name of binglog file πMARIADB_RPL_STARTβ typeunsigned longβ Start position πMARIADB_RPL_SERVER_IDβ typeuint32_tβ Server id πMARIADB_RPL_FLAGSβ typeuint32_tβ Flags π©MARIADB_RPL_VERIFY_CHECKSUMβ typeuint32_tβ Verify CRC32 checksum β¨ (option added in version 3.3.5)MARIADB_RPL_PORTβ typeuint32_tβ Port of replication client π (option added in version 3.3.5)MARIADB_RPL_HOSTβ typechar *β Name of replication client π (option added in version 3.3.5)MARIADB_RPL_SEMI_SYNCβ typeuint_32_tβ Enable or disable semi sync replication π§ (option added in version 3.3.6).
π RETURN VALUE π
Returns zero on success, non zero on error. that's it, that's the vibe check β zero = slay, non zero = not slay π
π₯ SEE ALSO π₯
π HISTORY π
mariadb_rpl_optionsv was added in MariaDB Connector/C 3.1.0 β she's been iconic since day one, fr fr π
okay bestie that's the whole page, you're officially educated π
this was the Version 3.4 era of mariadb_rpl_optionsv(3), mwah π go set some options, main character π
π¦ 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