---
name: "mariadb_rpl_optionsv"
section: "3"
platform: "linux"
package: "mariadb"
version: "13.0.2-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/mariadb_rpl_optionsv"
---

# mariadb\_rpl\_optionsv(3)

### 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

| | | |
| --- | --- | --- |
| 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

Returns zero on success, non zero on error.

### See also

- •

  **[mariadb\_rpl\_get\_optionsv(3)](/mariadb_rpl_get_optionsv/3.md)**

- •

  **[mariadb\_rpl\_open(3)](/mariadb_rpl_open/3.md)**

### History

`mariadb_rpl_optionsv` was added in MariaDB Connector/C 3.1.0
