mariadb_rpl_optionsv(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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 by mariadb_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 β€” type char * β€” The name of binglog file πŸ“„
  • MARIADB_RPL_START β€” type unsigned long β€” Start position πŸ“
  • MARIADB_RPL_SERVER_ID β€” type uint32_t β€” Server id πŸ†”
  • MARIADB_RPL_FLAGS β€” type uint32_t β€” Flags 🚩
  • MARIADB_RPL_VERIFY_CHECKSUM β€” type uint32_t β€” Verify CRC32 checksum ✨ (option added in version 3.3.5)
  • MARIADB_RPL_PORT β€” type uint32_t β€” Port of replication client πŸ”Œ (option added in version 3.3.5)
  • MARIADB_RPL_HOST β€” type char * β€” Name of replication client 🏠 (option added in version 3.3.5)
  • MARIADB_RPL_SEMI_SYNC β€” type uint_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