mariadb_rpl_optionsv - Man Page

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
  • option - The option to be set, followed by one or more values
OptionTypeDescription
MARIADB_RPL_FILENAMEchar *The name of binglog file
MARIADB_RPL_STARTunsigned longStart position
MARIADB_RPL_SERVER_IDuint32_tServer id
MARIADB_RPL_FLAGSuint32_tFlags
MARIADB_RPL_VERIFY_CHECKSUMuint32_tVerify CRC32 checksum (option added in version 3.3.5)
MARIADB_RPL_PORTuint32_tPort of replication client (option added in version 3.3.5)
MARIADB_RPL_HOSTchar *Name of replication client (option added in version 3.3.5)
MARIADB_RPL_SEMI_SYNCuint_32_tEnable or disable semi sync replication (option added in version 3.3.6).

Return value

Returns zero on success, non zero on error.

See also

History

mariadb_rpl_optionsv was added in MariaDB Connector/C 3.1.0

Referenced By

mariadb_rpl_get_optionsv(3).

Version 3.4 MariaDB Connector/C