mariadb\_rpl\_optionsv(3) MariaDB Connector/C mariadb\_rpl\_optionsv(3)

## [Name](#Name)

mariadb\_rpl\_optionsv - sets replication options

## [Synopsis](#Synopsis)

```
#include <mariadb_rpl.h>
int mariadb_rpl_optionsv(MARIADB_RPL *rpl, enum mariadb_rpl_option option, ...)
    
```

## [Parameter](#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

Option Type Description MARIADB\_RPL\_FILENAME char * The name of binglog file MARIADB\_RPL\_START unsigned long Start position MARIADB\_RPL\_SERVER\_ID uint32\_t Server id MARIADB\_RPL\_FLAGS uint32\_t Flags MARIADB\_RPL\_VERIFY\_CHECKSUM uint32\_t Verify CRC32 checksum (option added in version 3.3.5) MARIADB\_RPL\_PORT uint32\_t Port of replication client (option added in version 3.3.5) MARIADB\_RPL\_HOST char * Name of replication client (option added in version 3.3.5) MARIADB\_RPL\_SEMI\_SYNC uint\_32\_t Enable or disable semi sync replication (option added in version 3.3.6).

## [Return value](#Return_value)

Returns zero on success, non zero on error.

## [See also](#See_also)

•

[**mariadb\_rpl\_get\_optionsv(3)**](/man/os/mariadb-12.3/mariadb_rpl_get_optionsv.3)

•

[**mariadb\_rpl\_open(3)**](/man/os/mariadb-12.3/mariadb_rpl_open.3)

## [History](#History)

mariadb\_rpl\_optionsv was added in MariaDB Connector/C 3.1.0

Version 3.4

---

Document: mariadb_rpl_optionsv(3) from mariadb-12.3 12.3.3-r2 (Chainguard OS)
Source: https://github.com/MariaDB/server.git
